Fixed import
This commit is contained in:
1 parent
587b5ff48c
commit
f4aef563d0
2 files changed
+11
-11
No files matched your search
@@ -14,18 +14,18 @@ pub fn DashboardButton(
|
|||||||
view! {
|
view! {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="dashboard-button flex items-start gap-3 rounded-lg border p-4
|
class="dashboard-button flex items-start gap-3 rounded-lg border-grey-300 p-6
|
||||||
hover:bg-gray-100 transition cursor-pointer w-full text-left"
|
hover:bg-gray-100 transition cursor-pointer w-full text-left
|
||||||
on:click=on_click
|
shadow-[inset_0_0_6px_rgba(0,0,0,0.12)]"
|
||||||
>
|
on:click=on_click>
|
||||||
{icon.as_ref().map(|src| view! {
|
|
||||||
<img src={src.clone()} class="h-8 w-8" alt="icon"/>
|
|
||||||
})}
|
|
||||||
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
{icon.as_ref().map(|src| view! {
|
||||||
|
<img src={src.clone()} class="h-8 w-8" alt="icon"/>
|
||||||
|
})}
|
||||||
<h3 class="font-semibold text-base">{title.clone()}</h3>
|
<h3 class="font-semibold text-base">{title.clone()}</h3>
|
||||||
{description.as_ref().map(|d| view! {
|
{description.as_ref().map(|d| view! {
|
||||||
<p class="text-sm text-gray-600">{d.clone()}</p>
|
<p class="text-sm text-gray-600 pt-6">{d.clone()}</p>
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
mod action_button;
|
mod action_button;
|
||||||
mod checkbox;
|
mod checkbox;
|
||||||
mod chips;
|
mod chips;
|
||||||
pub(crate) mod dashboard_button;
|
mod dashboard_button;
|
||||||
mod loading;
|
mod loading;
|
||||||
mod multi_entry;
|
mod multi_entry;
|
||||||
mod panel;
|
mod panel;
|
||||||
@@ -11,6 +11,6 @@ mod select;
|
|||||||
mod text_field;
|
mod text_field;
|
||||||
|
|
||||||
pub use self::{
|
pub use self::{
|
||||||
action_button::*, checkbox::*, chips::*, loading::*, multi_entry::*, panel::*, radio::*,
|
action_button::*, checkbox::*, chips::*, dashboard_button::*, loading::*, multi_entry::*,
|
||||||
row::*, select::*, text_field::*,
|
panel::*, radio::*, row::*, select::*, text_field::*,
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user