From 22ceb8e2b4fdd1cd8bbbb12763217dff81cbbc39 Mon Sep 17 00:00:00 2001 From: rassadin11 Date: Tue, 19 May 2026 14:38:35 +0300 Subject: [PATCH] 19.05.2026 okkk --- src/pages/profile/ui/ProfilePage.tsx | 14 ++++++++++++-- src/widgets/wallet-header/ui/WalletHeader.tsx | 6 +++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/pages/profile/ui/ProfilePage.tsx b/src/pages/profile/ui/ProfilePage.tsx index bb3a56a..81e11a8 100644 --- a/src/pages/profile/ui/ProfilePage.tsx +++ b/src/pages/profile/ui/ProfilePage.tsx @@ -1,6 +1,6 @@ import { useNavigate } from 'react-router-dom' import { useMe } from '@features/auth' -import { usePortfolio } from '@features/wallet' +import { usePortfolio, useWalletAddresses } from '@features/wallet' import { ROUTES } from '@shared/config/routes' import { Button, FormField } from '@shared/ui' import { WalletHeader } from '@widgets/wallet-header' @@ -10,6 +10,7 @@ import styles from './ProfilePage.module.css' export function ProfilePage() { const { data } = useMe() const { data: portfolio, isLoading: isPortfolioLoading } = usePortfolio() + const { data: walletAddresses } = useWalletAddresses() const navigate = useNavigate() const capitalize = (s: string) => (s ? s[0].toUpperCase() + s.slice(1).toLowerCase() : '') @@ -67,7 +68,16 @@ export function ProfilePage() { } >
- + {walletAddresses?.map(({ chain, address }) => ( + + ))}
diff --git a/src/widgets/wallet-header/ui/WalletHeader.tsx b/src/widgets/wallet-header/ui/WalletHeader.tsx index 004afad..6772492 100644 --- a/src/widgets/wallet-header/ui/WalletHeader.tsx +++ b/src/widgets/wallet-header/ui/WalletHeader.tsx @@ -76,7 +76,11 @@ export function WalletHeader() {
{open && (