,
children: Children,
) -> impl IntoView {
- view! {
-
- }
+ view! { }
}
diff --git a/thaw/src/toast/toast_title.rs b/thaw/src/toast/toast_title.rs
index cb0aebd..2131f05 100644
--- a/thaw/src/toast/toast_title.rs
+++ b/thaw/src/toast/toast_title.rs
@@ -9,25 +9,30 @@ pub fn ToastTitle(
) -> impl IntoView {
view! {
-
- {children()}
+ },
+ )
+ }}
+ {children()}
-
- {(action.children)()}
-
+ {(action.children)()}
}
}
diff --git a/thaw/src/toast/toaster.rs b/thaw/src/toast/toaster.rs
index 0674cc0..8ec7ed3 100644
--- a/thaw/src/toast/toaster.rs
+++ b/thaw/src/toast/toaster.rs
@@ -71,93 +71,87 @@ pub fn Toaster(
data-thaw-id=config_provider.id().clone()
>
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}
-
+
+ {if let Some((view, options)) = toasts
+ .try_update_value(|map| { map.remove(&id) })
+ .flatten()
{
- if let Some((view, options)) = toasts.try_update_value(|map| { map.remove(&id) }).flatten() {
- Either::Left(view! { })
- } else {
- Either::Right(())
- }
- }
+ Either::Left(
+ view! { },
+ )
+ } else {
+ Either::Right(())
+ }}