diff --git a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/AccountInformationForHome.tsx b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/AccountInformationForHome.tsx
index 4bb77b097..bfc691d4b 100644
--- a/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/AccountInformationForHome.tsx
+++ b/packages/extension-polkagate/src/fullscreen/homeFullScreen/partials/AccountInformationForHome.tsx
@@ -48,6 +48,45 @@ export enum POPUPS_NUMBER {
FORGET_ACCOUNT,
RENAME,
MANAGE_PROFILE
+}
+
+const AccountButton = ({ icon, onClick, text }: AccountButtonType) => {
+ const theme = useTheme();
+
+ return (
+
+ );
+};
+
+const AccountTotal = ({ currencySign, hideNumbers, totalBalance }: {currencySign: string | undefined, hideNumbers: boolean|undefined, totalBalance: number | undefined}) => {
+ const theme = useTheme();
+ const { t } = useTranslation();
+
+ return (
+
+
+
+ {t('Total')}:
+
+ {
+ hideNumbers || hideNumbers === undefined
+ ?
+ : totalBalance !== undefined
+ ?
+ {`${currencySign ?? ''}${nFormatter(totalBalance ?? 0, 2)}`}
+
+ :
+ }
+
+
+ );
};
export default function AccountInformationForHome ({ accountAssets, address, hideNumbers, isChild, selectedAsset, setSelectedAsset }: AddressDetailsProps): React.ReactElement {
@@ -88,36 +127,6 @@ export default function AccountInformationForHome ({ accountAssets, address, hid
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [accountAssets, calculatePrice, currency, pricesInCurrencies]);
- const AccountTotal = () => (
-
-
-
- {t('Total')}:
-
- {
- hideNumbers || hideNumbers === undefined
- ?
- : totalBalance !== undefined
- ?
- {`${currency?.sign ?? ''}${nFormatter(totalBalance ?? 0, 2)}`}
-
- :
- }
-
-
- );
-
- const AccountButton = ({ icon, onClick, text }: AccountButtonType) => (
-
- );
-
const onAssetBoxClicked = useCallback((asset: FetchedBalance | undefined) => {
address && asset && tieAccount(address, asset.genesisHash as HexString).finally(() => {
setSelectedAsset(asset);
@@ -182,7 +191,11 @@ export default function AccountInformationForHome ({ accountAssets, address, hid
-
+