diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 23:18:45 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 23:18:45 +0100 |
commit | 036a567bae8346eb38f9237f59645dbcc4f1cd8c (patch) | |
tree | 21a86e3c5cb8964030c414718190af12f3d26125 /src/view/organizational.rs | |
parent | 9df3ff8d633a18e934d4e62b0e2e718620760552 (diff) | |
download | wasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.gz wasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.bz2 |
switch to cargo-make; format files with rustfmt
Diffstat (limited to 'src/view/organizational.rs')
-rw-r--r-- | src/view/organizational.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/view/organizational.rs b/src/view/organizational.rs index e6636ec..7f2ca69 100644 --- a/src/view/organizational.rs +++ b/src/view/organizational.rs @@ -1,15 +1,15 @@ -use crate::viewmodel::utility::File; -use yew::prelude::*; -use yewtil::NeqAssign; -use crate::viewmodel::Error; +use super::VCardPropertyInputComponent; use crate::view::InputProps; use crate::viewmodel::organizational::*; +use crate::viewmodel::utility::File; +use crate::viewmodel::Error; use crate::viewmodel::VCardPropertyInputObject; -use super::VCardPropertyInputComponent; +use yew::prelude::*; +use yewtil::NeqAssign; -type Props = InputProps<Organizational,OrganizationalView>; +type Props = InputProps<Organizational, OrganizationalView>; -#[derive(Clone,PartialEq)] +#[derive(Clone, PartialEq)] pub struct OrganizationalView { props: Props, value: Organizational, @@ -60,7 +60,7 @@ impl Component for OrganizationalView { Msg::UpdateRelated(r) => self.value.related = r, Msg::Generate => { self.props.generated.emit(self.value.clone()); - }, + } }; true } @@ -70,7 +70,7 @@ impl Component for OrganizationalView { fn view(&self) -> yew::virtual_dom::VNode { let link = self.props.weak_link.borrow().clone().unwrap(); - html!{ + html! { <div class="box"> { self.render_error() } @@ -81,4 +81,4 @@ impl Component for OrganizationalView { </div> } } -}
\ No newline at end of file +} |