summaryrefslogtreecommitdiff
path: root/src/view/dates.rs
diff options
context:
space:
mode:
authorjelemux <jeremias.weber@protonmail.com>2021-02-07 21:43:48 +0100
committerjelemux <jeremias.weber@protonmail.com>2021-02-07 21:43:48 +0100
commitad9ba30ed217ec9907d1faf389c321a1dcf5c13a (patch)
tree7fdadcde26842e4806881492b993b948c1f2032c /src/view/dates.rs
parentf88f8d7c7dc87cdf47de95b54cc6e9f8429820a4 (diff)
downloadwasm-card-ad9ba30ed217ec9907d1faf389c321a1dcf5c13a.tar.gz
wasm-card-ad9ba30ed217ec9907d1faf389c321a1dcf5c13a.tar.bz2
add organizational properties
Diffstat (limited to 'src/view/dates.rs')
-rw-r--r--src/view/dates.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/view/dates.rs b/src/view/dates.rs
index 1c16680..de3d311 100644
--- a/src/view/dates.rs
+++ b/src/view/dates.rs
@@ -1,11 +1,14 @@
+use crate::view::InputProps;
use yew::prelude::*;
use yewtil::NeqAssign;
use crate::viewmodel::Error;
-use crate::view::WeakComponentLink;
use crate::viewmodel::dates::*;
use crate::viewmodel::VCardPropertyInputObject;
use super::VCardPropertyInputComponent;
+type Props = InputProps<Dates,DatesView>;
+
+#[derive(Clone,PartialEq)]
pub struct DatesView {
props: Props,
value: Dates,
@@ -19,12 +22,6 @@ pub enum Msg {
Generate,
}
-#[derive(Clone, PartialEq, Properties)]
-pub struct Props {
- pub generated: Callback<Dates>,
- pub weak_link: WeakComponentLink<DatesView>,
-}
-
impl VCardPropertyInputComponent<Dates> for DatesView {
fn get_input_object(&self) -> Dates {
self.value.clone()