From 250eec66a9a1836ac46cfc0612c3bfad27ce4c20 Mon Sep 17 00:00:00 2001 From: robhyrk Date: Fri, 24 May 2024 16:01:44 -0400 Subject: [PATCH] styles: remove old styling, add dropdown icon, update styles --- components/account/AccountModalContent.tsx | 29 +++++++++++----------- components/account/AccountModalHead.tsx | 4 +-- components/account/AccountSelect.tsx | 12 ++++++--- components/account/AccountSelectValue.tsx | 12 ++++----- components/ui/CopyIcon.tsx | 2 +- 5 files changed, 31 insertions(+), 28 deletions(-) diff --git a/components/account/AccountModalContent.tsx b/components/account/AccountModalContent.tsx index 03cfb56ec..4b716fa29 100644 --- a/components/account/AccountModalContent.tsx +++ b/components/account/AccountModalContent.tsx @@ -5,6 +5,7 @@ import { useWallet } from "lib/state/wallet"; import { useZtgBalance } from "lib/hooks/queries/useZtgBalance"; import { ZTG } from "@zeitgeistpm/sdk"; import { useChainConstants } from "lib/hooks/queries/useChainConstants"; +import { formatNumberLocalized } from "lib/util"; const AccountModalContent: FC = () => { const { activeAccount, disconnectWallet, accounts, selectAccount } = @@ -38,26 +39,26 @@ const AccountModalContent: FC = () => { value={value} onChange={onAccountChange} /> -
-
-
-
-
-
+
+
+
+
+
+
Account balance
-
-
+
+
balance
-
- {`${activeBalance?.div(ZTG).toFixed(4)} ${ +
+ {`${formatNumberLocalized(Number(activeBalance?.div(ZTG)))} ${ constants?.tokenSymbol ?? "" }` ?? "---"}
@@ -65,13 +66,13 @@ const AccountModalContent: FC = () => {
{ disconnectWallet(); }} > -
disconnect
- +
disconnect
+
diff --git a/components/account/AccountModalHead.tsx b/components/account/AccountModalHead.tsx index 26a1b4540..4260f15fd 100644 --- a/components/account/AccountModalHead.tsx +++ b/components/account/AccountModalHead.tsx @@ -9,9 +9,9 @@ const AccountModalHead = () => { return (
-
Account
+
Account
{ switchExtension(); }} diff --git a/components/account/AccountSelect.tsx b/components/account/AccountSelect.tsx index 44f16925d..80fce4785 100644 --- a/components/account/AccountSelect.tsx +++ b/components/account/AccountSelect.tsx @@ -9,8 +9,6 @@ import Select, { SingleValueProps, StylesConfig, } from "react-select"; -import { IoIosArrowDropdownCircle } from "react-icons/io"; - import CopyIcon from "../ui/CopyIcon"; import AccountSelectOption from "./AccountSelectOption"; import AccountSelectValue from "./AccountSelectValue"; @@ -98,7 +96,7 @@ const AccountSelect: FC = ({ const wallet = useWallet(); return ( -
+