From 0232b9f19847057b937c3ca45bcc0479cb893a59 Mon Sep 17 00:00:00 2001 From: veer-asbytes Date: Sat, 14 Sep 2024 18:59:13 +0530 Subject: [PATCH] wallet-page design updates --- ssr/src/page/wallet/mod.rs | 43 +++++++++++++++++++------------------- ssr/src/page/wallet/txn.rs | 10 ++++----- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/ssr/src/page/wallet/mod.rs b/ssr/src/page/wallet/mod.rs index 50a6742e..a287edcb 100644 --- a/ssr/src/page/wallet/mod.rs +++ b/ssr/src/page/wallet/mod.rs @@ -26,14 +26,14 @@ fn ProfileGreeter(details: ProfileDetails) -> impl IntoView { view! {
Welcome! - + // TEMP: Workaround for hydration bug until leptos 0.7 // class=("md:w-5/12", move || !is_connected()) {details.display_name_or_fallback()}
-
- +
+
} } @@ -43,9 +43,9 @@ fn FallbackGreeter() -> impl IntoView { view! {
Welcome! -
+
-
+
} } @@ -53,7 +53,7 @@ const RECENT_TXN_CNT: usize = 10; #[component] fn BalanceFallback() -> impl IntoView { - view! {
} + view! {
} } #[component] @@ -123,19 +123,19 @@ pub fn Wallet() -> impl IntoView { view! {
-
+
-
+
-
- Your Coyns Balance +
+ Your Coyns Balance {move || { let balance = try_or_redirect_opt!(balance_fetch() ?); @@ -145,8 +145,8 @@ pub fn Wallet() -> impl IntoView {
-
-
+
+
impl IntoView {
-
-
- My Tokens - +
+ @@ -165,14 +165,14 @@ pub fn Wallet() -> impl IntoView {
-
-
- Recent Transactions - +
+ -
+
{move || { history_fetch() @@ -191,6 +191,7 @@ pub fn Wallet() -> impl IntoView {
+
Back to top
diff --git a/ssr/src/page/wallet/txn.rs b/ssr/src/page/wallet/txn.rs index d6a2622c..8a15d120 100644 --- a/ssr/src/page/wallet/txn.rs +++ b/ssr/src/page/wallet/txn.rs @@ -107,16 +107,16 @@ pub fn TxnView(info: TxnInfo, #[prop(optional)] _ref: NodeRef) -> imp ); view! { -
+
-
+
- + {info.tag.to_text()} - {info.amount} COYNs + {info.amount} COYNs
) -> imp } else { "text-red-600 justify-self-end" } - }>{bal_res} COYNs + } style="padding-right: 10px;" >{bal_res} COYNs
} }