fix(ci): ran cargo fmt
This commit is contained in:
@@ -9,12 +9,7 @@ use dioxus::prelude::*;
|
|||||||
/// * `href` - URL the card links to when clicked.
|
/// * `href` - URL the card links to when clicked.
|
||||||
/// * `icon` - Element rendered as the card icon (typically a `dioxus_free_icons::Icon`).
|
/// * `icon` - Element rendered as the card icon (typically a `dioxus_free_icons::Icon`).
|
||||||
#[component]
|
#[component]
|
||||||
pub fn DashboardCard(
|
pub fn DashboardCard(title: String, description: String, href: String, icon: Element) -> Element {
|
||||||
title: String,
|
|
||||||
description: String,
|
|
||||||
href: String,
|
|
||||||
icon: Element,
|
|
||||||
) -> Element {
|
|
||||||
rsx! {
|
rsx! {
|
||||||
a { class: "dashboard-card", href: "{href}",
|
a { class: "dashboard-card", href: "{href}",
|
||||||
div { class: "card-icon", {icon} }
|
div { class: "card-icon", {icon} }
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use dioxus_free_icons::icons::bs_icons::{
|
use dioxus_free_icons::icons::bs_icons::{
|
||||||
BsBoxArrowRight, BsFileEarmarkText, BsGear, BsGithub, BsGrid,
|
BsBoxArrowRight, BsFileEarmarkText, BsGear, BsGithub, BsGrid, BsHouseDoor, BsRobot,
|
||||||
BsHouseDoor, BsRobot,
|
|
||||||
};
|
};
|
||||||
use dioxus_free_icons::icons::fa_solid_icons::FaCubes;
|
use dioxus_free_icons::icons::fa_solid_icons::FaCubes;
|
||||||
use dioxus_free_icons::Icon;
|
use dioxus_free_icons::Icon;
|
||||||
|
|||||||
Reference in New Issue
Block a user