From ad9ba30ed217ec9907d1faf389c321a1dcf5c13a Mon Sep 17 00:00:00 2001 From: jelemux Date: Sun, 7 Feb 2021 21:43:48 +0100 Subject: add organizational properties --- src/view/telephone.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/view/telephone.rs') diff --git a/src/view/telephone.rs b/src/view/telephone.rs index 5db8ae1..dc93632 100644 --- a/src/view/telephone.rs +++ b/src/view/telephone.rs @@ -1,11 +1,13 @@ +use crate::view::InputProps; use yew::prelude::*; use yewtil::NeqAssign; -use crate::view::WeakComponentLink; use crate::viewmodel::Error; use crate::viewmodel::telephone::*; use crate::viewmodel::VCardPropertyInputObject; use super::VCardPropertyInputComponent; +type Props = InputProps; + /// View Component for a `telephone` field /// /// # Examples @@ -20,6 +22,7 @@ use super::VCardPropertyInputComponent; /// /> /// }; /// ``` +#[derive(Clone,PartialEq)] pub struct TelephoneView { props: Props, value: Telephone, @@ -41,12 +44,6 @@ pub enum Msg { Generate, } -#[derive(Clone, PartialEq, Properties)] -pub struct Props { - pub generated: Callback, - pub weak_link: WeakComponentLink, -} - impl VCardPropertyInputComponent for TelephoneView { fn get_input_object(&self) -> Telephone { self.value.clone() -- cgit v1.2.3