From d410277d14de3e94c8567d5bff30fb9bfd24f18c Mon Sep 17 00:00:00 2001 From: Gala Date: Tue, 6 Sep 2022 13:41:35 +0200 Subject: [PATCH 01/19] change all placeholders on textfields into labels --- nym-wallet/src/components/Accounts/modals/AddAccountModal.tsx | 2 +- .../src/components/Bonding/modals/NodeSettingsModal.tsx | 2 +- nym-wallet/src/components/Send/SendInputModal.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nym-wallet/src/components/Accounts/modals/AddAccountModal.tsx b/nym-wallet/src/components/Accounts/modals/AddAccountModal.tsx index 097f6d7ad0..d634c988cd 100644 --- a/nym-wallet/src/components/Accounts/modals/AddAccountModal.tsx +++ b/nym-wallet/src/components/Accounts/modals/AddAccountModal.tsx @@ -115,7 +115,7 @@ const NameAccount = ({ onNext, onBack }: { onNext: (value: string) => void; onBa {error} { setValue(e.target.value); diff --git a/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx b/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx index 1a1903d205..52c1874764 100644 --- a/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx +++ b/nym-wallet/src/components/Bonding/modals/NodeSettingsModal.tsx @@ -108,7 +108,7 @@ export const NodeSettings = ({ Set profit margin - setPm(e.target.value)} fullWidth /> + setPm(e.target.value)} fullWidth /> {error && ( Profit margin should be a whole number between 0 and 100 diff --git a/nym-wallet/src/components/Send/SendInputModal.tsx b/nym-wallet/src/components/Send/SendInputModal.tsx index 523760b523..bc53adbd08 100644 --- a/nym-wallet/src/components/Send/SendInputModal.tsx +++ b/nym-wallet/src/components/Send/SendInputModal.tsx @@ -58,13 +58,13 @@ export const SendInputModal = ({ onAddressChange(e.target.value)} value={toAddress} /> { onAmountChange(value); From 2aaaa0deb78731450ea73ae0a6a525c97e5873af Mon Sep 17 00:00:00 2001 From: Gala Date: Tue, 6 Sep 2022 13:55:20 +0200 Subject: [PATCH 02/19] globally no colon at the end of ModalListItem --- nym-wallet/src/components/ConfirmTX.stories.tsx | 6 +++--- nym-wallet/src/components/Delegation/DelegateModal.tsx | 4 ++-- nym-wallet/src/components/Receive/ReceiveModal.tsx | 2 +- nym-wallet/src/components/Send/SendDetailsModal.tsx | 6 +++--- nym-wallet/src/components/Send/SendInputModal.tsx | 4 ++-- nym-wallet/src/pages/balance/components/TransferModal.tsx | 4 ++-- nym-wallet/src/pages/bond/components/ConfirmationModal.tsx | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/nym-wallet/src/components/ConfirmTX.stories.tsx b/nym-wallet/src/components/ConfirmTX.stories.tsx index 77bbf4fdcf..2eec07b7e3 100644 --- a/nym-wallet/src/components/ConfirmTX.stories.tsx +++ b/nym-wallet/src/components/ConfirmTX.stories.tsx @@ -10,9 +10,9 @@ export default { const Template: ComponentStory = (args) => ( - - - + + + ); diff --git a/nym-wallet/src/components/Delegation/DelegateModal.tsx b/nym-wallet/src/components/Delegation/DelegateModal.tsx index 066c271e48..8c46292273 100644 --- a/nym-wallet/src/components/Delegation/DelegateModal.tsx +++ b/nym-wallet/src/components/Delegation/DelegateModal.tsx @@ -169,8 +169,8 @@ export const DelegateModal: React.FC<{ onPrev={resetFeeState} onConfirm={handleOk} > - - + + ); } diff --git a/nym-wallet/src/components/Receive/ReceiveModal.tsx b/nym-wallet/src/components/Receive/ReceiveModal.tsx index 0b13cf87dd..8f56fc3279 100644 --- a/nym-wallet/src/components/Receive/ReceiveModal.tsx +++ b/nym-wallet/src/components/Receive/ReceiveModal.tsx @@ -20,7 +20,7 @@ export const ReceiveModal = ({ onClose }: { onClose: () => void; sx?: SxProps; b - } /> + } /> `1px solid ${t.palette.nym.highlight}`, bgcolor: 'white', borderRadius: 2, p: 3 }}> diff --git a/nym-wallet/src/components/Send/SendDetailsModal.tsx b/nym-wallet/src/components/Send/SendDetailsModal.tsx index eac87cded3..887ec44e39 100644 --- a/nym-wallet/src/components/Send/SendDetailsModal.tsx +++ b/nym-wallet/src/components/Send/SendDetailsModal.tsx @@ -39,9 +39,9 @@ export const SendDetailsModal = ({ backdropProps={backdropProps} > - - - + + + diff --git a/nym-wallet/src/components/Send/SendInputModal.tsx b/nym-wallet/src/components/Send/SendInputModal.tsx index bc53adbd08..81521ae3f8 100644 --- a/nym-wallet/src/components/Send/SendInputModal.tsx +++ b/nym-wallet/src/components/Send/SendInputModal.tsx @@ -56,7 +56,7 @@ export const SendInputModal = ({ backdropProps={backdropProps} > - + - + Est. fee for this transaction will be show on the next page diff --git a/nym-wallet/src/pages/balance/components/TransferModal.tsx b/nym-wallet/src/pages/balance/components/TransferModal.tsx index 451a9899e8..02a8318064 100644 --- a/nym-wallet/src/pages/balance/components/TransferModal.tsx +++ b/nym-wallet/src/pages/balance/components/TransferModal.tsx @@ -87,12 +87,12 @@ export const TransferModal = ({ onClose }: { onClose: () => void }) => { ) : ( <> } divider /> diff --git a/nym-wallet/src/pages/bond/components/ConfirmationModal.tsx b/nym-wallet/src/pages/bond/components/ConfirmationModal.tsx index 44dab1bd5f..32c6634c5c 100644 --- a/nym-wallet/src/pages/bond/components/ConfirmationModal.tsx +++ b/nym-wallet/src/pages/bond/components/ConfirmationModal.tsx @@ -20,8 +20,8 @@ export const ConfirmationModal = ({ }) => ( - - + + From db3171ea091c0783b1e7bfaa2202d9ddb0eb81f5 Mon Sep 17 00:00:00 2001 From: Gala Date: Tue, 6 Sep 2022 13:58:54 +0200 Subject: [PATCH 03/19] ModalListItem fix font size --- nym-wallet/src/components/Modals/ModalListItem.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nym-wallet/src/components/Modals/ModalListItem.tsx b/nym-wallet/src/components/Modals/ModalListItem.tsx index 2c1524dec8..1bf70c2384 100644 --- a/nym-wallet/src/components/Modals/ModalListItem.tsx +++ b/nym-wallet/src/components/Modals/ModalListItem.tsx @@ -12,11 +12,11 @@ export const ModalListItem: React.FC<{ }> = ({ label, value, hidden, fontWeight, divider }) => (