From 781995201fa8e38981d9e7d048947ff2c0acb280 Mon Sep 17 00:00:00 2001 From: amalcaraz Date: Wed, 6 Dec 2023 17:02:05 +0100 Subject: [PATCH] feat: disable create node buttons if not logged in --- src/components/pages/earn/ComputeResourceNodesPage/cmp.tsx | 1 + src/components/pages/earn/CoreChannelNodesPage/cmp.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/pages/earn/ComputeResourceNodesPage/cmp.tsx b/src/components/pages/earn/ComputeResourceNodesPage/cmp.tsx index 8a650dd..750132f 100644 --- a/src/components/pages/earn/ComputeResourceNodesPage/cmp.tsx +++ b/src/components/pages/earn/ComputeResourceNodesPage/cmp.tsx @@ -49,6 +49,7 @@ export const ComputeResourceNodesPage = memo((props) => { variant="secondary" size="regular" tw="gap-2.5" + disabled={!account} > Create compute node diff --git a/src/components/pages/earn/CoreChannelNodesPage/cmp.tsx b/src/components/pages/earn/CoreChannelNodesPage/cmp.tsx index 59413eb..9583849 100644 --- a/src/components/pages/earn/CoreChannelNodesPage/cmp.tsx +++ b/src/components/pages/earn/CoreChannelNodesPage/cmp.tsx @@ -37,6 +37,7 @@ export const CoreChannelNodesPage = memo((props) => { variant="secondary" size="regular" tw="gap-2.5" + disabled={!account} > Create core node