From c5a7b03a56d8b04dd7cda8e685a7290ea6944520 Mon Sep 17 00:00:00 2001 From: joel-medicala-yral Date: Mon, 16 Dec 2024 17:14:29 +0530 Subject: [PATCH] added colors and made non reactive components reactive --- ssr/src/component/buttons.rs | 18 ++++++------- ssr/src/page/icpump/mod.rs | 48 ++++++++++------------------------- ssr/src/utils/token/icpump.rs | 1 + 3 files changed, 23 insertions(+), 44 deletions(-) diff --git a/ssr/src/component/buttons.rs b/ssr/src/component/buttons.rs index 6859287c..232f0bb1 100644 --- a/ssr/src/component/buttons.rs +++ b/ssr/src/component/buttons.rs @@ -12,8 +12,8 @@ pub fn HighlightedButton( view! { -
{page}
+
{page}
@@ -251,8 +247,9 @@ pub fn ActionButton( ) -> impl IntoView { view! {
{children()}
@@ -261,25 +258,6 @@ pub fn ActionButton( } } -#[component] -pub fn ActionButtonWithHandler( - label: String, - children: Children, - #[prop(optional, default = false)] disabled: bool, - on_click: impl Fn() + 'static, -) -> impl IntoView { - view! { - - } -} #[component] pub fn TelegramIcon(href: String, classes: String) -> impl IntoView { view! { diff --git a/ssr/src/utils/token/icpump.rs b/ssr/src/utils/token/icpump.rs index 99ea2e8f..80cd4e38 100644 --- a/ssr/src/utils/token/icpump.rs +++ b/ssr/src/utils/token/icpump.rs @@ -130,6 +130,7 @@ pub async fn get_paginated_token_list(page: u32) -> Result, S #[cfg(not(feature = "firestore"))] { use crate::consts::ICPUMP_LISTING_PAGE_SIZE; + use candid::Principal; let test_user_id = TokenListItem { user_id: Principal::anonymous().to_text(), name: "Test Token".to_string(),