Use .get() on TextProp
This commit is contained in:
@ -83,7 +83,7 @@ pub fn DashboardRow(
|
||||
view! {
|
||||
<div class="dashboard-tile-row">
|
||||
<div class="dashboard-tile-row-title-row">
|
||||
<h2>{title}</h2>
|
||||
<h2>{move || title.get()}</h2>
|
||||
<div class="dashboard-tile-row-scroll-btn">
|
||||
<button on:click=scroll_left tabindex=-1 style=scroll_left_hidden>
|
||||
<Icon icon={icondata::FiChevronLeft} {..} class="dashboard-tile-row-scroll" />
|
||||
@ -98,11 +98,11 @@ pub fn DashboardRow(
|
||||
view! {
|
||||
<li>
|
||||
<div class="dashboard-tile">
|
||||
<a href={tile.link}>
|
||||
<img src={tile.image_path} alt="dashboard-tile" />
|
||||
<p class="dashboard-tile-title">{tile.title}</p>
|
||||
<a href={move || tile.link.get()}>
|
||||
<img src={move || tile.image_path.get()} alt="dashboard-tile" />
|
||||
<p class="dashboard-tile-title">{move || tile.title.get()}</p>
|
||||
<p class="dashboard-tile-description">
|
||||
{tile.description}
|
||||
{move || tile.description.as_ref().map(|desc| desc.get())}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -16,9 +16,9 @@ pub fn ServerError<E: Display + 'static>(
|
||||
<div class="error-container">
|
||||
<div class="error-header">
|
||||
<Icon icon={icondata::BiErrorSolid} />
|
||||
<h1>{title}</h1>
|
||||
<h1>{move || title.get()}</h1>
|
||||
</div>
|
||||
<p>{message}</p>
|
||||
<p>{move || message.get()}</p>
|
||||
<p>{error.map(|error| format!("{}", error))}</p>
|
||||
</div>
|
||||
}
|
||||
@ -37,9 +37,9 @@ pub fn Error<E: Display + 'static>(
|
||||
<div class="error-container">
|
||||
<div class="error-header">
|
||||
<Icon icon={icondata::BiErrorSolid} />
|
||||
<h1>{title}</h1>
|
||||
<h1>{move || title.get()}</h1>
|
||||
</div>
|
||||
<p>{message}</p>
|
||||
<p>{move || message.get()}</p>
|
||||
<p>{error.map(|error| format!("{}", error))}</p>
|
||||
</div>
|
||||
}
|
||||
|
Reference in New Issue
Block a user