🎨 Move DownArrowIcon to the new icons file
This commit is contained in:
@@ -1,24 +1,12 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_free_icons::icons::md_navigation_icons::MdArrowDropDown;
|
||||
use dioxus_free_icons::Icon;
|
||||
use dioxus_std::utils::rw::UseRw;
|
||||
|
||||
use crate::base::Store;
|
||||
use crate::components::avatar_selector::AvatarSelector;
|
||||
use crate::components::icons::DownArrowIcon;
|
||||
|
||||
turf::style_sheet!("src/components/contacts_window/user_infos.scss");
|
||||
|
||||
fn DownArrowIcon(cx: Scope) -> Element {
|
||||
cx.render(rsx! {
|
||||
style { STYLE_SHEET },
|
||||
|
||||
Icon {
|
||||
class: ClassName::DOWN_ARROW_ICON,
|
||||
icon: MdArrowDropDown,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
static MESSAGE_PLACEHOLDER: &str = "<Enter a personal message>";
|
||||
|
||||
#[inline_props]
|
||||
|
@@ -61,11 +61,3 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.downArrowIcon {
|
||||
color: transparent;
|
||||
|
||||
path:last-child {
|
||||
fill: white;
|
||||
}
|
||||
}
|
||||
|
16
src/components/icons.rs
Normal file
16
src/components/icons.rs
Normal 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,
|
||||
}
|
||||
})
|
||||
}
|
7
src/components/icons.scss
Normal file
7
src/components/icons.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.down-arrow-icon {
|
||||
color: transparent;
|
||||
|
||||
path:last-child {
|
||||
fill: white;
|
||||
}
|
||||
}
|
@@ -2,5 +2,6 @@ pub mod avatar_selector;
|
||||
pub mod chats_window;
|
||||
pub mod contacts_window;
|
||||
pub mod header;
|
||||
pub mod icons;
|
||||
pub mod login;
|
||||
pub mod main_window;
|
||||
|
Reference in New Issue
Block a user