From b5ca8d81de708154c14f042b313f9ed592964a96 Mon Sep 17 00:00:00 2001 From: brusher_ru Date: Mon, 16 Sep 2024 23:30:45 -0300 Subject: [PATCH] tweak: normalize default Card style and some other stuff --- src/components/EditAccountModal.tsx | 2 +- src/components/KeyManager.tsx | 4 ++-- src/components/NodeStatusBadge.tsx | 11 ++++++----- src/components/RewardListItem.tsx | 4 ++-- src/components/RewardsList.tsx | 2 +- src/components/TxList.tsx | 4 ++-- src/components/TxListItem.tsx | 2 +- src/components/sendTx/MultiSigSpawn.tsx | 2 +- src/components/sendTx/SingleSigSpawn.tsx | 2 +- src/components/sendTx/VaultSpawn.tsx | 2 +- src/screens/WalletScreen.tsx | 4 ++-- src/theme/card.ts | 24 +++++++++--------------- 12 files changed, 29 insertions(+), 34 deletions(-) diff --git a/src/components/EditAccountModal.tsx b/src/components/EditAccountModal.tsx index 0054e2b..e6b7fcc 100644 --- a/src/components/EditAccountModal.tsx +++ b/src/components/EditAccountModal.tsx @@ -346,7 +346,7 @@ function EditAccountModal({ errors={errors} isSubmitted={isSubmitted} /> - + Change the parameters below on your own risk.
Changing any of them will change the account's address. diff --git a/src/components/KeyManager.tsx b/src/components/KeyManager.tsx index 45a5921..8373251 100644 --- a/src/components/KeyManager.tsx +++ b/src/components/KeyManager.tsx @@ -290,7 +290,7 @@ function KeyManager({ isOpen, onClose }: KeyManagerProps): JSX.Element { float="right" display="flex" alignItems="center" - colorScheme="yellow" + colorScheme="orange" gap={1} > @@ -427,7 +427,7 @@ function KeyManager({ isOpen, onClose }: KeyManagerProps): JSX.Element { fontWeight="normal" fontSize="xx-small" ml={1} - colorScheme="yellow" + colorScheme="orange" > {keys.length === 1 && keys[0] && diff --git a/src/components/NodeStatusBadge.tsx b/src/components/NodeStatusBadge.tsx index 05de627..6d023a6 100644 --- a/src/components/NodeStatusBadge.tsx +++ b/src/components/NodeStatusBadge.tsx @@ -1,4 +1,4 @@ -import { Badge, Box, Card, CardBody } from '@chakra-ui/react'; +import { Badge, Box, Card, CardBody, Text } from '@chakra-ui/react'; import useNetworks from '../store/useNetworks'; import useNetworkStatus from '../store/useNetworkStatus'; @@ -13,14 +13,15 @@ function NodeStatusBadge(): JSX.Element | null { return ( - Error: {error.message} -
+ + Error: {error.message} + Please choose another public RPC.
@@ -31,7 +32,7 @@ function NodeStatusBadge(): JSX.Element | null { return ( diff --git a/src/components/RewardsList.tsx b/src/components/RewardsList.tsx index 96ab992..840b43a 100644 --- a/src/components/RewardsList.tsx +++ b/src/components/RewardsList.tsx @@ -39,7 +39,7 @@ function RewardsList({ }} > {account.rewards.length === 0 && ( - + No rewards for this account.
Check out{' '} diff --git a/src/components/TxList.tsx b/src/components/TxList.tsx index 79a4034..f56f3e6 100644 --- a/src/components/TxList.tsx +++ b/src/components/TxList.tsx @@ -41,13 +41,13 @@ function TxList({ > {txs.length === 0 && ( <> - + No transactions yet.

To send transactions you need to:
- + have some tokens on the balance, initiate a spawn transaction first. diff --git a/src/components/TxListItem.tsx b/src/components/TxListItem.tsx index 14a308e..395de94 100644 --- a/src/components/TxListItem.tsx +++ b/src/components/TxListItem.tsx @@ -75,7 +75,7 @@ function TxListItem({ : 'Unknown fee'; return ( - + Spawn arguments are taken from Account settings. - + Spawn arguments are taken from Account settings. diff --git a/src/components/sendTx/VaultSpawn.tsx b/src/components/sendTx/VaultSpawn.tsx index 92481b9..d625d72 100644 --- a/src/components/sendTx/VaultSpawn.tsx +++ b/src/components/sendTx/VaultSpawn.tsx @@ -40,7 +40,7 @@ function VaultSpawn({ return ( <> - + Spawn arguments are taken from Account settings. diff --git a/src/screens/WalletScreen.tsx b/src/screens/WalletScreen.tsx index c571b35..b9651e4 100644 --- a/src/screens/WalletScreen.tsx +++ b/src/screens/WalletScreen.tsx @@ -126,7 +126,7 @@ function WalletScreen(): JSX.Element { {O.mapWithDefault( currentAccount, accountList.length > 0 ? ( - + Please switch account to view balance. ) : ( @@ -257,7 +257,7 @@ function WalletScreen(): JSX.Element { borderRadius={6} position="relative" > - + Transactions Rewards diff --git a/src/theme/card.ts b/src/theme/card.ts index 90f3d11..448b928 100644 --- a/src/theme/card.ts +++ b/src/theme/card.ts @@ -9,24 +9,18 @@ const baseStyle = definePartsStyle({ backgroundColor: 'brand.darkGreen', shadow: 'none', }, - header: { - paddingBottom: '2px', +}); + +const list = definePartsStyle({ + container: { + backgroundColor: 'brand.darkGreen', + shadow: 'none', + borderRadius: '0px', }, body: { - paddingTop: '2px', - }, - footer: { - paddingTop: '2px', + py: 2, }, }); -const sizes = { - md: definePartsStyle({ - container: { - borderRadius: '0px', - }, - }), -}; - -const cardTheme = defineMultiStyleConfig({ baseStyle, sizes }); +const cardTheme = defineMultiStyleConfig({ baseStyle, variants: { list } }); export default cardTheme;