🎨 Move DownArrowIcon to the new icons file

This commit is contained in:
2023-08-20 19:53:28 +02:00
parent 94d0ea1cc8
commit 3b89cd1769
5 changed files with 25 additions and 21 deletions

16
src/components/icons.rs Normal file
View File

@@ -0,0 +1,16 @@
use dioxus::prelude::*;
use dioxus_free_icons::icons::md_navigation_icons::MdArrowDropDown;
use dioxus_free_icons::Icon;
turf::style_sheet!("src/components/icons.scss");
pub fn DownArrowIcon(cx: Scope) -> Element {
cx.render(rsx! {
style { STYLE_SHEET },
Icon {
class: ClassName::DOWN_ARROW_ICON,
icon: MdArrowDropDown,
}
})
}