feat: create kyc page with api

This commit is contained in:
2026-05-12 21:41:06 +03:00
parent eae5decd7f
commit 36c63a2597
2 changed files with 12 additions and 1 deletions

View File

@@ -1,9 +1,19 @@
import { useEffect } from 'react'
import { Button, FormField } from '@shared/ui'
import { WalletHeader } from '@widgets/wallet-header'
import { ProfileAvatar, ProfileSection } from '@widgets/profile'
import styles from './ProfilePage.module.css'
export function ProfilePage() {
useEffect(() => {
fetch('https://app.users.elcsa.ru/me', { credentials: 'include' })
.then(async (res) => {
const data = await res.json().catch(() => null)
console.log('[/me] status:', res.status, 'body:', data)
})
.catch((err) => console.error('[/me] error:', err))
}, [])
return (
<div className={styles.page}>
<WalletHeader />