feat: create kyc page with api
This commit is contained in:
@@ -1,9 +1,19 @@
|
|||||||
|
import { useEffect } from 'react'
|
||||||
import { Button, FormField } from '@shared/ui'
|
import { Button, FormField } from '@shared/ui'
|
||||||
import { WalletHeader } from '@widgets/wallet-header'
|
import { WalletHeader } from '@widgets/wallet-header'
|
||||||
import { ProfileAvatar, ProfileSection } from '@widgets/profile'
|
import { ProfileAvatar, ProfileSection } from '@widgets/profile'
|
||||||
import styles from './ProfilePage.module.css'
|
import styles from './ProfilePage.module.css'
|
||||||
|
|
||||||
export function ProfilePage() {
|
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 (
|
return (
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
<WalletHeader />
|
<WalletHeader />
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
width: 300px;
|
width: 300px;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
filter: invert(1);
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +64,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 200px;
|
width: 100%;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
background: linear-gradient(135deg, var(--grad-edge), var(--grad-center));
|
background: linear-gradient(135deg, var(--grad-edge), var(--grad-center));
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|||||||
Reference in New Issue
Block a user