diff --git a/yewprint/src/tag.rs b/yewprint/src/tag.rs index 68c6280..f599a4c 100644 --- a/yewprint/src/tag.rs +++ b/yewprint/src/tag.rs @@ -1,4 +1,4 @@ -use crate::{if_html, Button, ConditionalClass, Icon, IconName, Intent, Text}; +use crate::{if_html, ConditionalClass, Icon, IconName, Intent, Text}; use yew::prelude::*; pub struct Tag { @@ -67,12 +67,13 @@ impl Component for Tag { let remove_button = if_html! { let Some(callback) = self.props.onremove.clone() => html!( - + ) }; @@ -99,8 +100,8 @@ impl Component for Tag { > {self.props.children.clone()} - {remove_button} {right_icon} + {remove_button} } }