From 1104d4d41b960032a796a328907c54d7da0b17ea Mon Sep 17 00:00:00 2001 From: subject026 Date: Thu, 4 Jul 2024 11:17:10 +0100 Subject: [PATCH 1/7] button text size --- src/app/governance/components/VotingPower.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/governance/components/VotingPower.tsx b/src/app/governance/components/VotingPower.tsx index 6736165..2bae72f 100644 --- a/src/app/governance/components/VotingPower.tsx +++ b/src/app/governance/components/VotingPower.tsx @@ -142,7 +142,7 @@ function DistributeEqually({ - Distribute Equally + Distribute Equally ); } From 8c896c8fecb4c08ca3192bdc376c1584ee5dfd36 Mon Sep 17 00:00:00 2001 From: subject026 Date: Thu, 4 Jul 2024 11:58:48 +0100 Subject: [PATCH 2/7] hide btn when not connected & add hover styles --- src/app/governance/components/VotingPower.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/app/governance/components/VotingPower.tsx b/src/app/governance/components/VotingPower.tsx index 2bae72f..c921d90 100644 --- a/src/app/governance/components/VotingPower.tsx +++ b/src/app/governance/components/VotingPower.tsx @@ -38,13 +38,9 @@ export function VotingPower({ Voting power:{" "} - {user.status === "NOT_CONNECTED" - ? null - : // - // connect wallet - // - userVotingPower && - formatBalance(userVotingPower / cycleLength.data, 2)} + {user.status === "CONNECTED" && + userVotingPower && + formatBalance(userVotingPower / cycleLength.data, 2)}

@@ -61,9 +57,9 @@ export function VotingPower({ userVotingPower !== null && userVotingPower < minRequiredVotingPower ? ( - ) : ( + ) : user.status === "CONNECTED" ? ( - )} + ) : null} ); @@ -125,7 +121,7 @@ function DistributeEqually({ }) { return (