From a0d66e328adfc49ede4926c3049e820068dbfedd Mon Sep 17 00:00:00 2001 From: "mist.zzh" Date: Tue, 7 Jun 2022 22:13:09 +0800 Subject: [PATCH] [Feat] add contact lnk --- ui/src/common/contact.rs | 7 ++++++- ui/src/common/header/header.rs | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/common/contact.rs b/ui/src/common/contact.rs index 69a65d6..153678d 100644 --- a/ui/src/common/contact.rs +++ b/ui/src/common/contact.rs @@ -1,4 +1,5 @@ use super::image::Icon; +use crate::link::Link; use utils::use_style; use yew::prelude::*; @@ -70,7 +71,11 @@ pub fn contacts(props: &ContactsProps) -> Html { .iter() .map(|contact| { let source: &'static str = contact.into(); - html! {} + html! { + + + + } }) .collect::(); diff --git a/ui/src/common/header/header.rs b/ui/src/common/header/header.rs index 1e910e3..0b4d865 100644 --- a/ui/src/common/header/header.rs +++ b/ui/src/common/header/header.rs @@ -1,3 +1,4 @@ +use crate::contact::ContactType; use crate::container::Container; use crate::header::drawer::Drawer; use crate::header::drawer_item::DrawerItem; @@ -120,7 +121,9 @@ pub fn header() -> Html {
- + + + {only_render_on_mobile(html! { })}