summaryrefslogtreecommitdiff
path: root/src/view/dates.rs
diff options
context:
space:
mode:
authorjelemux <jeremias.weber@protonmail.com>2021-02-09 23:18:45 +0100
committerjelemux <jeremias.weber@protonmail.com>2021-02-09 23:18:45 +0100
commit036a567bae8346eb38f9237f59645dbcc4f1cd8c (patch)
tree21a86e3c5cb8964030c414718190af12f3d26125 /src/view/dates.rs
parent9df3ff8d633a18e934d4e62b0e2e718620760552 (diff)
downloadwasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.gz
wasm-card-036a567bae8346eb38f9237f59645dbcc4f1cd8c.tar.bz2
switch to cargo-make; format files with rustfmt
Diffstat (limited to 'src/view/dates.rs')
-rw-r--r--src/view/dates.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/view/dates.rs b/src/view/dates.rs
index de3d311..b2a6dd3 100644
--- a/src/view/dates.rs
+++ b/src/view/dates.rs
@@ -1,14 +1,14 @@
+use super::VCardPropertyInputComponent;
use crate::view::InputProps;
-use yew::prelude::*;
-use yewtil::NeqAssign;
-use crate::viewmodel::Error;
use crate::viewmodel::dates::*;
+use crate::viewmodel::Error;
use crate::viewmodel::VCardPropertyInputObject;
-use super::VCardPropertyInputComponent;
+use yew::prelude::*;
+use yewtil::NeqAssign;
-type Props = InputProps<Dates,DatesView>;
+type Props = InputProps<Dates, DatesView>;
-#[derive(Clone,PartialEq)]
+#[derive(Clone, PartialEq)]
pub struct DatesView {
props: Props,
value: Dates,
@@ -51,7 +51,7 @@ impl Component for DatesView {
Msg::UpdateBirthday(b) => self.value.birthday = b,
Msg::Generate => {
self.props.generated.emit(self.value.clone());
- },
+ }
};
true
}
@@ -61,7 +61,7 @@ impl Component for DatesView {
fn view(&self) -> yew::virtual_dom::VNode {
let link = self.props.weak_link.borrow().clone().unwrap();
- html!{
+ html! {
<div class="box">
{ self.render_error() }
@@ -72,4 +72,4 @@ impl Component for DatesView {
</div>
}
}
-} \ No newline at end of file
+}