diff --git a/src/graphql/queries/__generated__/wallet.generated.tsx b/src/graphql/queries/__generated__/wallet.generated.tsx index 990951a2..5d30cbaf 100644 --- a/src/graphql/queries/__generated__/wallet.generated.tsx +++ b/src/graphql/queries/__generated__/wallet.generated.tsx @@ -52,6 +52,11 @@ export type GetWalletDetailsQuery = { type: Types.WalletType; protected_mnemonic?: string | null; }; + accounts: Array<{ + __typename?: 'WalletAccount'; + descriptor: string; + account_type: Types.WalletAccountType; + }>; }; }; }; @@ -238,6 +243,10 @@ export const GetWalletDetailsDocument = gql` type protected_mnemonic } + accounts { + descriptor + account_type + } } } } diff --git a/src/graphql/queries/wallet.ts b/src/graphql/queries/wallet.ts index fd1751ec..0084c3c3 100644 --- a/src/graphql/queries/wallet.ts +++ b/src/graphql/queries/wallet.ts @@ -34,6 +34,10 @@ export const GetWalletDetails = gql` type protected_mnemonic } + accounts { + descriptor + account_type + } } } } diff --git a/src/views/wallet/Settings.tsx b/src/views/wallet/Settings.tsx index 5f2f84cb..5400b693 100644 --- a/src/views/wallet/Settings.tsx +++ b/src/views/wallet/Settings.tsx @@ -295,6 +295,39 @@ export const WalletSettings: FC<{ walletId: string }> = ({ walletId }) => { + +
+ {!data?.wallets.find_one.accounts.length ? ( +

No accounts found.

+ ) : ( + data.wallets.find_one.accounts.map((a, i) => { + return ( +
+ +
+ + +
+
+ ); + }) + )} +
); };