Compare commits

..
Author SHA1 Message Date
Aleka Cheung ea4fd4b5e4 more details nits 2024-02-07 15:18:20 -05:00
Aleka Cheung aad5539f18 wrap details item 2024-02-07 15:18:15 -05:00
18 changed files with 1348 additions and 1442 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
"@cosmjs/tendermint-rpc": "^0.32.1", "@cosmjs/tendermint-rpc": "^0.32.1",
"@dydxprotocol/v4-abacus": "^1.4.2", "@dydxprotocol/v4-abacus": "^1.4.2",
"@dydxprotocol/v4-client-js": "^1.0.20", "@dydxprotocol/v4-client-js": "^1.0.20",
"@dydxprotocol/v4-localization": "^1.1.26", "@dydxprotocol/v4-localization": "^1.1.25",
"@ethersproject/providers": "^5.7.2", "@ethersproject/providers": "^5.7.2",
"@js-joda/core": "^5.5.3", "@js-joda/core": "^5.5.3",
"@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-accordion": "^1.1.2",
+5 -9
View File
@@ -36,8 +36,8 @@ dependencies:
specifier: ^1.0.20 specifier: ^1.0.20
version: 1.0.20 version: 1.0.20
'@dydxprotocol/v4-localization': '@dydxprotocol/v4-localization':
specifier: ^1.1.26 specifier: ^1.1.25
version: 1.1.26 version: 1.1.25
'@ethersproject/providers': '@ethersproject/providers':
specifier: ^5.7.2 specifier: ^5.7.2
version: 5.7.2 version: 5.7.2
@@ -1323,8 +1323,8 @@ packages:
- utf-8-validate - utf-8-validate
dev: false dev: false
/@dydxprotocol/v4-localization@1.1.26: /@dydxprotocol/v4-localization@1.1.25:
resolution: {integrity: sha512-u+J1J5Up8McwZOcDaG9GrH/A8p4vD2NU2CT2hPdYyKgEd28XeAYvv7bNAQRKdiBaqTePbbF5uB6TMAQnEGnb1A==} resolution: {integrity: sha512-84BJMybnZBrRnDpnHlMUcOYT1r0ODtgcdgrjdzTw8b0sViTY6ne9ob690fcn/vQO+6sEdDsdt+08ud0H+ZvyYg==}
dev: false dev: false
/@dydxprotocol/v4-proto@4.0.0-dev.0: /@dydxprotocol/v4-proto@4.0.0-dev.0:
@@ -8882,7 +8882,7 @@ packages:
resolution: {integrity: sha512-WIdaQ8uW1vIbYvNnAVunkC6yxTrneJC7VQ5UUQ0kuw8b0C0A39KTIpoQHCfc8tV7o9vF4niwRhdXEdfAgQEsQQ==} resolution: {integrity: sha512-WIdaQ8uW1vIbYvNnAVunkC6yxTrneJC7VQ5UUQ0kuw8b0C0A39KTIpoQHCfc8tV7o9vF4niwRhdXEdfAgQEsQQ==}
dependencies: dependencies:
cosmos-directory-types: 0.0.6 cosmos-directory-types: 0.0.6
node-fetch-native: 1.6.2 node-fetch-native: 1.6.1
dev: false dev: false
/cosmos-directory-types@0.0.6: /cosmos-directory-types@0.0.6:
@@ -12892,10 +12892,6 @@ packages:
resolution: {integrity: sha512-bW9T/uJDPAJB2YNYEpWzE54U5O3MQidXsOyTfnbKYtTtFexRvGzb1waphBN4ZwP6EcIvYYEOwW0b72BpAqydTw==} resolution: {integrity: sha512-bW9T/uJDPAJB2YNYEpWzE54U5O3MQidXsOyTfnbKYtTtFexRvGzb1waphBN4ZwP6EcIvYYEOwW0b72BpAqydTw==}
dev: false dev: false
/node-fetch-native@1.6.2:
resolution: {integrity: sha512-69mtXOFZ6hSkYiXAVB5SqaRvrbITC/NPyqv7yuu/qw0nmgPyYbIMYYNIDhNtwPrzk0ptrimrLz/hhjvm4w5Z+w==}
dev: false
/node-fetch@2.6.12: /node-fetch@2.6.12:
resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==} resolution: {integrity: sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==}
engines: {node: 4.x || >=6.0.0} engines: {node: 4.x || >=6.0.0}
+1302 -1319
View File
File diff suppressed because it is too large Load Diff
+9 -5
View File
@@ -133,6 +133,7 @@ const detailsLayoutVariants = {
row: css` row: css`
${layoutMixins.row} ${layoutMixins.row}
align-self: stretch; align-self: stretch;
white-space: nowrap;
`, `,
rowColumns: css` rowColumns: css`
@@ -159,12 +160,16 @@ const itemLayoutVariants: Record<string, FlattenInterpolation<ThemeProps<any>>>
${layoutMixins.spacedRow} ${layoutMixins.spacedRow}
gap: 0.5rem; gap: 0.5rem;
align-items: start;
padding: 0.5rem 0;
min-height: var(--details-item-height); min-height: var(--details-item-height);
> :last-child { > :first-child > abbr {
align-self: stretch; min-width: auto;
}
> :last-child {
${layoutMixins.row} ${layoutMixins.row}
${layoutMixins.stickyRight} ${layoutMixins.stickyRight}
@@ -217,8 +222,6 @@ Styled.Details = styled.dl<{
--details-grid-numColumns: 2; --details-grid-numColumns: 2;
${({ layout }) => layout && detailsLayoutVariants[layout]} ${({ layout }) => layout && detailsLayoutVariants[layout]}
white-space: nowrap;
`; `;
Styled.Item = styled.div<{ Styled.Item = styled.div<{
@@ -231,7 +234,7 @@ Styled.Item = styled.div<{
${({ justifyItems }) => ${({ justifyItems }) =>
justifyItems === 'end' && justifyItems === 'end' &&
css` css`
&:nth-child(even) { > :nth-child(even) {
justify-items: end; justify-items: end;
text-align: end; text-align: end;
} }
@@ -243,6 +246,7 @@ Styled.Item = styled.div<{
{ {
column: css` column: css`
&:not(:hover) > :first-child { &:not(:hover) > :first-child {
white-space: nowrap;
overflow-x: hidden; overflow-x: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
+1 -1
View File
@@ -26,7 +26,7 @@ export const DetailsDialog = ({ slotIcon, title, items, slotFooter, setIsOpen }:
placement={isTablet ? DialogPlacement.Default : DialogPlacement.Sidebar} placement={isTablet ? DialogPlacement.Default : DialogPlacement.Sidebar}
> >
<Styled.Content> <Styled.Content>
<Styled.Details withSeparators items={items} /> <Styled.Details withSeparators justifyItems="end" items={items} />
<Styled.Footer>{slotFooter}</Styled.Footer> <Styled.Footer>{slotFooter}</Styled.Footer>
</Styled.Content> </Styled.Content>
-1
View File
@@ -40,7 +40,6 @@ export enum WalletErrorType {
// General // General
ChainMismatch, ChainMismatch,
UserCanceled, UserCanceled,
SwitchChainMethodMissing,
// Non-Deterministic // Non-Deterministic
NonDeterministicWallet, NonDeterministicWallet,
+1 -1
View File
@@ -88,7 +88,7 @@ export const usePotentialMarketsContext = () => {
impactNotional: 10_000, impactNotional: 10_000,
}, },
1: { 1: {
label: stringGetter({ key: STRING_KEYS.MID_CAP }), label: 'Mid-cap',
initialMarginFraction: 0.1, initialMarginFraction: 0.1,
maintenanceMarginFraction: 0.05, maintenanceMarginFraction: 0.05,
impactNotional: 5_000, impactNotional: 5_000,
+7 -10
View File
@@ -163,20 +163,17 @@ export const useWalletConnection = () => {
} }
} }
} catch (error) { } catch (error) {
const { isErrorExpected } = parseWalletError({ error, stringGetter }); throw Object.assign(
if (!isErrorExpected) { new Error([error.message, error.cause?.message].filter(Boolean).join('\n')),
throw Object.assign( {
new Error([error.message, error.cause?.message].filter(Boolean).join('\n')), walletConnectionType: walletConnection?.type,
{ }
walletConnectionType: walletConnection?.type, );
}
);
}
} }
return { return {
walletType, walletType,
walletConnectionType: walletConnection?.type, walletConnectionType: walletConnection.type,
}; };
}, },
[isConnectedGraz, signerGraz, isConnectedWagmi, signerWagmi] [isConnectedGraz, signerGraz, isConnectedWagmi, signerWagmi]
+1 -11
View File
@@ -92,10 +92,6 @@ export const getWalletErrorType = ({ error }: { error: Error }) => {
return WalletErrorType.ChainMismatch; return WalletErrorType.ChainMismatch;
} }
if (messageLower.includes('Missing or invalid. request() method: wallet_switchEthereumChain')) {
return WalletErrorType.SwitchChainMethodMissing;
}
// ImToken - User canceled // ImToken - User canceled
if (messageLower.includes('用户取消了操作')) { if (messageLower.includes('用户取消了操作')) {
return WalletErrorType.UserCanceled; return WalletErrorType.UserCanceled;
@@ -117,18 +113,13 @@ export const parseWalletError = ({
}) => { }) => {
const walletErrorType = getWalletErrorType({ error }); const walletErrorType = getWalletErrorType({ error });
let message; let message;
let isErrorExpected;
switch (walletErrorType) { switch (walletErrorType) {
case WalletErrorType.ChainMismatch: case WalletErrorType.ChainMismatch:
case WalletErrorType.UserCanceled: case WalletErrorType.UserCanceled: {
case WalletErrorType.SwitchChainMethodMissing: {
isErrorExpected = true;
message = error.message;
break; break;
} }
default: { default: {
isErrorExpected = false;
message = stringGetter({ message = stringGetter({
key: STRING_KEYS.SOMETHING_WENT_WRONG_WITH_MESSAGE, key: STRING_KEYS.SOMETHING_WENT_WRONG_WITH_MESSAGE,
params: { params: {
@@ -141,6 +132,5 @@ export const parseWalletError = ({
return { return {
walletErrorType, walletErrorType,
message, message,
isErrorExpected,
}; };
}; };
+1 -1
View File
@@ -19,7 +19,7 @@ export default () => {
<Styled.HeaderSection> <Styled.HeaderSection>
<ContentSectionHeader <ContentSectionHeader
title={stringGetter({ key: STRING_KEYS.GOVERNANCE })} title={stringGetter({ key: STRING_KEYS.GOVERNANCE })}
subtitle={stringGetter({ key: STRING_KEYS.GOVERNANCE_PAGE_SUBTITLE })} subtitle="Participate in the ecosystem by voting on Governance proposals or submitting your own."
/> />
</Styled.HeaderSection> </Styled.HeaderSection>
+1 -1
View File
@@ -59,7 +59,7 @@ export default () => {
<Icon iconName={IconName.CurrencySign} /> <Icon iconName={IconName.CurrencySign} />
</Styled.IconContainer> </Styled.IconContainer>
), ),
label: stringGetter({ key: STRING_KEYS.STAKING_REWARDS }), label: 'Staking Rewards', // stringGetter({ key: STRING_KEYS.STAKING_REWARDS }),
href: TokenRoute.StakingRewards, href: TokenRoute.StakingRewards,
tag: stringGetter({ key: STRING_KEYS.NEW }), tag: stringGetter({ key: STRING_KEYS.NEW }),
}, },
+2 -5
View File
@@ -5,21 +5,18 @@ import { layoutMixins } from '@/styles/layoutMixins';
import { DetachedSection } from '@/components/ContentSection'; import { DetachedSection } from '@/components/ContentSection';
import { ContentSectionHeader } from '@/components/ContentSectionHeader'; import { ContentSectionHeader } from '@/components/ContentSectionHeader';
import { useStringGetter } from '@/hooks';
import { StakingPanel } from './StakingPanel'; import { StakingPanel } from './StakingPanel';
import { StrideStakingPanel } from './StrideStakingPanel'; import { StrideStakingPanel } from './StrideStakingPanel';
import { DYDXBalancePanel } from '../rewards/DYDXBalancePanel'; import { DYDXBalancePanel } from '../rewards/DYDXBalancePanel';
import { STRING_KEYS } from '@/constants/localization';
export default () => { export default () => {
const stringGetter = useStringGetter();
return ( return (
<DetachedSection> <DetachedSection>
<Styled.HeaderSection> <Styled.HeaderSection>
<ContentSectionHeader <ContentSectionHeader
title={stringGetter({ key: STRING_KEYS.STAKING_REWARDS })} title="Staking Rewards"
subtitle={stringGetter({ key: STRING_KEYS.STAKING_PAGE_SUBTITLE })} subtitle="Stake to earn APR. Unstaking can take up to 30 days."
/> />
</Styled.HeaderSection> </Styled.HeaderSection>
+1 -1
View File
@@ -23,7 +23,7 @@ export const StakingPanel = ({ className }: { className?: string }) => {
className={className} className={className}
slotHeaderContent={ slotHeaderContent={
<Styled.Header> <Styled.Header>
<Styled.Title>{stringGetter({ key: STRING_KEYS.STAKE_WITH_KEPLR })}</Styled.Title> <Styled.Title>Stake with Keplr</Styled.Title>
<Styled.Img src="/third-party/keplr.png" alt={stringGetter({ key: STRING_KEYS.KEPLR })} /> <Styled.Img src="/third-party/keplr.png" alt={stringGetter({ key: STRING_KEYS.KEPLR })} />
</Styled.Header> </Styled.Header>
} }
@@ -24,7 +24,7 @@ export const StrideStakingPanel = ({ className }: { className?: string }) => {
slotHeaderContent={ slotHeaderContent={
<Styled.Header> <Styled.Header>
<Styled.Title> <Styled.Title>
{stringGetter({ key: STRING_KEYS.LIQUID_STAKE_W_STRIDE })} Liquid Stake with Stride
<Tag isHighlighted>{stringGetter({ key: STRING_KEYS.NEW })}</Tag> <Tag isHighlighted>{stringGetter({ key: STRING_KEYS.NEW })}</Tag>
</Styled.Title> </Styled.Title>
<Styled.Img src="/third-party/stride.png" alt="Stride" /> <Styled.Img src="/third-party/stride.png" alt="Stride" />
@@ -33,10 +33,7 @@ export const StrideStakingPanel = ({ className }: { className?: string }) => {
onClick={() => dispatch(openDialog({ type: DialogTypes.ExternalNavStride }))} onClick={() => dispatch(openDialog({ type: DialogTypes.ExternalNavStride }))}
> >
<Styled.Description> <Styled.Description>
{stringGetter({ {`Stake your ${chainTokenLabel} tokens for st${chainTokenLabel} which you can deploy around the ecosystem.`}
key: STRING_KEYS.LIQUID_STAKE_STRIDE_DESCRIPTION,
params: { TOKEN_DENOM: chainTokenLabel },
})}
<Link href={stakingLearnMore} onClick={(e) => e.stopPropagation()}> <Link href={stakingLearnMore} onClick={(e) => e.stopPropagation()}>
{stringGetter({ key: STRING_KEYS.LEARN_MORE })} {stringGetter({ key: STRING_KEYS.LEARN_MORE })}
</Link> </Link>
-3
View File
@@ -15,7 +15,6 @@ type ElementProps = {
link: string; link: string;
linkDescription?: string; linkDescription?: string;
title?: ReactNode; title?: ReactNode;
slotContent?: ReactNode;
setIsOpen: (open: boolean) => void; setIsOpen: (open: boolean) => void;
}; };
@@ -25,7 +24,6 @@ export const ExternalLinkDialog = ({
link, link,
linkDescription, linkDescription,
title, title,
slotContent,
}: ElementProps) => { }: ElementProps) => {
const stringGetter = useStringGetter(); const stringGetter = useStringGetter();
return ( return (
@@ -38,7 +36,6 @@ export const ExternalLinkDialog = ({
} }
> >
<Styled.Content> <Styled.Content>
{slotContent}
<p>{stringGetter({ key: STRING_KEYS.LEAVING_WEBSITE_DISCLAIMER })}.</p> <p>{stringGetter({ key: STRING_KEYS.LEAVING_WEBSITE_DISCLAIMER })}.</p>
<Button type={ButtonType.Link} action={ButtonAction.Primary} href={link}> <Button type={ButtonType.Link} action={ButtonAction.Primary} href={link}>
{buttonText ?? stringGetter({ key: STRING_KEYS.CONTINUE })} {buttonText ?? stringGetter({ key: STRING_KEYS.CONTINUE })}
+3 -28
View File
@@ -1,9 +1,6 @@
import { useCallback } from 'react';
import styled, { type AnyStyledComponent } from 'styled-components'; import styled, { type AnyStyledComponent } from 'styled-components';
import { useDispatch } from 'react-redux';
import { ButtonAction, ButtonSize, ButtonType } from '@/constants/buttons'; import { ButtonAction, ButtonSize, ButtonType } from '@/constants/buttons';
import { DialogTypes } from '@/constants/dialogs';
import { STRING_KEYS } from '@/constants/localization'; import { STRING_KEYS } from '@/constants/localization';
import { useBreakpoints, useStringGetter, useURLConfigs } from '@/hooks'; import { useBreakpoints, useStringGetter, useURLConfigs } from '@/hooks';
@@ -12,8 +9,6 @@ import { Dialog, DialogPlacement } from '@/components/Dialog';
import { IconName } from '@/components/Icon'; import { IconName } from '@/components/Icon';
import { IconButton } from '@/components/IconButton'; import { IconButton } from '@/components/IconButton';
import { closeDialog, openDialog } from '@/state/dialogs';
import { layoutMixins } from '@/styles/layoutMixins'; import { layoutMixins } from '@/styles/layoutMixins';
type ElementProps = { type ElementProps = {
@@ -23,20 +18,8 @@ type ElementProps = {
export const ExternalNavKeplrDialog = ({ setIsOpen }: ElementProps) => { export const ExternalNavKeplrDialog = ({ setIsOpen }: ElementProps) => {
const stringGetter = useStringGetter(); const stringGetter = useStringGetter();
const { keplrDashboard, accountExportLearnMore } = useURLConfigs(); const { keplrDashboard, accountExportLearnMore } = useURLConfigs();
const dispatch = useDispatch();
const { isTablet } = useBreakpoints();
const onExternalNavDialog = useCallback(() => { const { isTablet } = useBreakpoints();
dispatch(closeDialog());
dispatch(
openDialog({
type: DialogTypes.ExternalLink,
dialogProps: {
link: keplrDashboard,
},
})
);
}, [dispatch]);
return ( return (
<Dialog <Dialog
@@ -46,11 +29,7 @@ export const ExternalNavKeplrDialog = ({ setIsOpen }: ElementProps) => {
placement={isTablet ? DialogPlacement.FullScreen : DialogPlacement.Default} placement={isTablet ? DialogPlacement.FullScreen : DialogPlacement.Default}
> >
<Styled.Content> <Styled.Content>
<Styled.Button <Styled.Button type={ButtonType.Link} size={ButtonSize.XLarge} href={keplrDashboard}>
type={ButtonType.Button}
size={ButtonSize.XLarge}
onClick={onExternalNavDialog}
>
<span> <span>
{stringGetter({ {stringGetter({
key: STRING_KEYS.NAVIGATE_TO_KEPLR, key: STRING_KEYS.NAVIGATE_TO_KEPLR,
@@ -67,11 +46,7 @@ export const ExternalNavKeplrDialog = ({ setIsOpen }: ElementProps) => {
/> />
</Styled.Button> </Styled.Button>
<Styled.Button <Styled.Button type={ButtonType.Link} size={ButtonSize.XLarge} href={accountExportLearnMore}>
type={ButtonType.Link}
size={ButtonSize.XLarge}
href={accountExportLearnMore}
>
<span> <span>
{stringGetter({ {stringGetter({
key: STRING_KEYS.LEARN_TO_EXPORT, key: STRING_KEYS.LEARN_TO_EXPORT,
+4 -16
View File
@@ -33,22 +33,15 @@ export const ExternalNavStrideDialog = ({ setIsOpen }: ElementProps) => {
dialogProps: { dialogProps: {
buttonText: ( buttonText: (
<Styled.Span> <Styled.Span>
{stringGetter({ key: STRING_KEYS.LIQUID_STAKE_ON_STRIDE })} Liquid Stake on Stride <Icon iconName={IconName.LinkOut} />
<Icon iconName={IconName.LinkOut} />
</Styled.Span> </Styled.Span>
), ),
link: strideZoneApp, link: strideZoneApp,
title: stringGetter({ key: STRING_KEYS.LIQUID_STAKING_AND_LEAVING }), title: 'Liquid staking and leaving website',
slotContent: stringGetter({
key: STRING_KEYS.LIQUID_STAKING_AND_LEAVING_DESCRIPTION,
params: {
CTA: stringGetter({ key: STRING_KEYS.LIQUID_STAKE_ON_STRIDE }),
},
}),
}, },
}) })
); );
}, [dispatch, stringGetter]); }, [dispatch]);
return ( return (
<Dialog <Dialog
@@ -64,12 +57,7 @@ export const ExternalNavStrideDialog = ({ setIsOpen }: ElementProps) => {
onClick={openExternalNavDialog} onClick={openExternalNavDialog}
> >
<span> <span>
{stringGetter({ <strong>{stringGetter({ key: STRING_KEYS.YES })}</strong>, Navigate to Stride Zone.
key: STRING_KEYS.NAVIGATE_TO_STRIDE,
params: {
STRONG_YES: <strong>{stringGetter({ key: STRING_KEYS.YES })}</strong>,
},
})}
</span> </span>
<Styled.IconButton <Styled.IconButton
@@ -44,6 +44,7 @@ export const GenerateKeys = ({
onKeysDerived = () => {}, onKeysDerived = () => {},
}: ElementProps) => { }: ElementProps) => {
const stringGetter = useStringGetter(); const stringGetter = useStringGetter();
const { isMobile } = useBreakpoints();
const [shouldRememberMe, setShouldRememberMe] = useState(false); const [shouldRememberMe, setShouldRememberMe] = useState(false);
@@ -65,30 +66,17 @@ export const GenerateKeys = ({
try { try {
await matchNetwork?.(); await matchNetwork?.();
return true;
} catch (error) { } catch (error) {
const { message, walletErrorType, isErrorExpected } = parseWalletError({ const { message, walletErrorType } = parseWalletError({ error, stringGetter });
error,
stringGetter,
});
if (!isErrorExpected) {
log('GenerateKeys/switchNetwork', error, { walletErrorType });
}
if (message) { if (message) {
log('GenerateKeys/switchNetwork', error, { walletErrorType });
setError(message); setError(message);
throw error;
} }
return false;
} }
}; };
const switchNetworkAndDeriveKeys = async () => {
const networkSwitched = await switchNetwork();
if (networkSwitched) await deriveKeys();
};
// 2. Derive keys from EVM account // 2. Derive keys from EVM account
const { getWalletFromEvmSignature } = useDydxClient(); const { getWalletFromEvmSignature } = useDydxClient();
const { getSubaccounts } = useAccounts(); const { getSubaccounts } = useAccounts();
@@ -166,16 +154,11 @@ export const GenerateKeys = ({
setStatus(EvmDerivedAccountStatus.Derived); setStatus(EvmDerivedAccountStatus.Derived);
} catch (error) { } catch (error) {
setStatus(EvmDerivedAccountStatus.NotDerived); setStatus(EvmDerivedAccountStatus.NotDerived);
const { message, walletErrorType, isErrorExpected } = parseWalletError({ const { message, walletErrorType } = parseWalletError({ error, stringGetter });
error,
stringGetter,
});
if (message) { if (message) {
setError(message); setError(message);
if (!isErrorExpected) { log('GenerateKeys/deriveKeys', error, { walletErrorType });
log('GenerateKeys/deriveKeys', error, { walletErrorType });
}
} }
} }
}; };
@@ -248,7 +231,7 @@ export const GenerateKeys = ({
{!isMatchingNetwork ? ( {!isMatchingNetwork ? (
<Button <Button
action={ButtonAction.Primary} action={ButtonAction.Primary}
onClick={() => switchNetworkAndDeriveKeys().then(onKeysDerived)} onClick={() => switchNetwork().then(deriveKeys).then(onKeysDerived)}
state={{ isLoading: isSwitchingNetwork }} state={{ isLoading: isSwitchingNetwork }}
> >
{stringGetter({ key: STRING_KEYS.SWITCH_NETWORK })} {stringGetter({ key: STRING_KEYS.SWITCH_NETWORK })}