From 693589466d22110a33618c212923c13ebd50654b Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Sun, 10 Nov 2024 22:06:14 -0500 Subject: [PATCH 1/6] refactor: update three dots icon size --- src/app/components/Card/Card.tsx | 2 +- src/app/components/WalletListItem/WalletListItemSkeleton.tsx | 4 ++-- .../components/ContactListMobile/ContactListItemMobile.tsx | 2 +- src/domains/profile/components/ProfileRow/ProfileRow.tsx | 2 +- .../setting/pages/Networks/blocks/CustomNetworksList.tsx | 2 +- src/domains/setting/pages/Servers/blocks/CustomPeers.tsx | 2 +- .../WalletDetails/components/WalletHeader/WalletHeader.tsx | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/components/Card/Card.tsx b/src/app/components/Card/Card.tsx index 7ef6d40d64..e45b7edfd2 100644 --- a/src/app/components/Card/Card.tsx +++ b/src/app/components/Card/Card.tsx @@ -41,7 +41,7 @@ export const Card = ({ variant, children, addonIcons, actions, onClick, onSelect } diff --git a/src/app/components/WalletListItem/WalletListItemSkeleton.tsx b/src/app/components/WalletListItem/WalletListItemSkeleton.tsx index 7572de679f..6b8d64ec90 100644 --- a/src/app/components/WalletListItem/WalletListItemSkeleton.tsx +++ b/src/app/components/WalletListItem/WalletListItemSkeleton.tsx @@ -50,9 +50,9 @@ export const WalletListItemSkeleton: React.VFC = () => { variant="transparent" size="icon" disabled={true} - className="-mr-1.5 text-theme-primary-300 hover:text-theme-primary-600" + className="-mr-1.5 text-theme-gray-700 hover:bg-theme-primary-200 hover:text-theme-primary-700 dark:hover:bg-theme-secondary-800 dark:hover:text-white" > - + diff --git a/src/domains/contact/components/ContactListMobile/ContactListItemMobile.tsx b/src/domains/contact/components/ContactListMobile/ContactListItemMobile.tsx index cecdce7f0b..b293385782 100644 --- a/src/domains/contact/components/ContactListMobile/ContactListItemMobile.tsx +++ b/src/domains/contact/components/ContactListMobile/ContactListItemMobile.tsx @@ -58,7 +58,7 @@ export const ContactListItemMobile: React.VFC = ({ - + } options={options} diff --git a/src/domains/profile/components/ProfileRow/ProfileRow.tsx b/src/domains/profile/components/ProfileRow/ProfileRow.tsx index bb22f56c3b..fde69d2dfc 100644 --- a/src/domains/profile/components/ProfileRow/ProfileRow.tsx +++ b/src/domains/profile/components/ProfileRow/ProfileRow.tsx @@ -79,7 +79,7 @@ export const ProfileRowSkeleton = () => (
diff --git a/src/domains/setting/pages/Networks/blocks/CustomNetworksList.tsx b/src/domains/setting/pages/Networks/blocks/CustomNetworksList.tsx index 9bf317588c..bde323204c 100644 --- a/src/domains/setting/pages/Networks/blocks/CustomNetworksList.tsx +++ b/src/domains/setting/pages/Networks/blocks/CustomNetworksList.tsx @@ -89,7 +89,7 @@ const CustomNetworksListNetwork: React.VFC<{ } diff --git a/src/domains/setting/pages/Servers/blocks/CustomPeers.tsx b/src/domains/setting/pages/Servers/blocks/CustomPeers.tsx index 33cf95c2c0..576a145621 100644 --- a/src/domains/setting/pages/Servers/blocks/CustomPeers.tsx +++ b/src/domains/setting/pages/Servers/blocks/CustomPeers.tsx @@ -164,7 +164,7 @@ const PeerRow = ({ size="icon" className="text-theme-primary-300 hover:text-theme-primary-600" > - + } onSelect={onSelectOption} diff --git a/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx b/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx index 04e4547e56..56a79089aa 100644 --- a/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx +++ b/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx @@ -46,9 +46,9 @@ export const WalletHeader: React.VFC = ({ } onSelect={handleSelectOption} From d53869199983b6eed59e27cc4e0aff7379b56da9 Mon Sep 17 00:00:00 2001 From: patricio0312rev Date: Mon, 11 Nov 2024 03:14:47 +0000 Subject: [PATCH 2/6] style: resolve style guide violations --- src/app/components/WalletListItem/WalletListItemSkeleton.tsx | 2 +- .../WalletDetails/components/WalletHeader/WalletHeader.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/WalletListItem/WalletListItemSkeleton.tsx b/src/app/components/WalletListItem/WalletListItemSkeleton.tsx index 6b8d64ec90..3bd2c1ac3f 100644 --- a/src/app/components/WalletListItem/WalletListItemSkeleton.tsx +++ b/src/app/components/WalletListItem/WalletListItemSkeleton.tsx @@ -50,7 +50,7 @@ export const WalletListItemSkeleton: React.VFC = () => { variant="transparent" size="icon" disabled={true} - className="-mr-1.5 text-theme-gray-700 hover:bg-theme-primary-200 hover:text-theme-primary-700 dark:hover:bg-theme-secondary-800 dark:hover:text-white" + className="text-theme-gray-700 -mr-1.5 hover:bg-theme-primary-200 hover:text-theme-primary-700 dark:hover:bg-theme-secondary-800 dark:hover:text-white" > diff --git a/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx b/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx index 56a79089aa..e3a22b3f70 100644 --- a/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx +++ b/src/domains/wallet/pages/WalletDetails/components/WalletHeader/WalletHeader.tsx @@ -46,7 +46,7 @@ export const WalletHeader: React.VFC = ({ From 9ff52a8121ad0b554f1b11887ce8ea912b12a030 Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Sun, 10 Nov 2024 22:20:13 -0500 Subject: [PATCH 3/6] chore: update snapshots --- .../__snapshots__/Contacts.test.tsx.snap | 12 +- .../__snapshots__/Servers.test.tsx.snap | 72 +-- .../__snapshots__/WalletsList.test.tsx.snap | 24 +- .../__snapshots__/WalletHeader.test.tsx.snap | 513 ++++++++---------- 4 files changed, 288 insertions(+), 333 deletions(-) diff --git a/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap b/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap index 1ad8e0b966..965460869e 100644 --- a/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap +++ b/src/domains/contact/pages/Contacts/__snapshots__/Contacts.test.tsx.snap @@ -2298,9 +2298,9 @@ exports[`Contacts > should render responsive with contacts 1`] = ` type="button" >
should render responsive with contacts 1`] = ` type="button" >
with servers > should ping the servers in an interva class="flex items-center space-x-2" >
with servers > should ping the servers in an interva class="flex items-center space-x-2" >
with servers > should ping the servers in an interva class="flex items-center space-x-2" >
with servers > should render custom servers 1`] = ` class="flex items-center space-x-2" >
with servers > should render custom servers 1`] = ` class="flex items-center space-x-2" >
with servers > should render custom servers 1`] = ` class="flex items-center space-x-2" >
with servers > should show status ok after ping the class="flex items-center space-x-2" >
with servers > should show status ok after ping the class="flex items-center space-x-2" >
with servers > should show status ok after ping the class="flex items-center space-x-2" >
with unreachable servers > should show status error class="flex items-center space-x-2" >
with unreachable servers > should show status error class="flex items-center space-x-2" >
with unreachable servers > should show status error class="flex items-center space-x-2" >
should render empty skeleton block 1`] = ` data-testid="WalletHeader__more-button" >
should render empty skeleton block 1`] = ` data-testid="WalletHeader__more-button" >
should render empty skeleton block 1`] = ` data-testid="WalletHeader__more-button" >
should handle locked balance 1`] = ` data-testid="dropdown__toggle" >
- - - - - + + +
@@ -678,48 +673,43 @@ exports[`WalletHeader > should handle locked balance when is ledger 1`] = ` data-testid="dropdown__toggle" >