feat: похуйу

This commit is contained in:
2026-05-12 21:50:41 +03:00
parent 36c63a2597
commit e310eafa1e
3 changed files with 25 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { useEffect } from 'react'
import { getMe } from '@features/auth'
import { Button, FormField } from '@shared/ui'
import { WalletHeader } from '@widgets/wallet-header'
import { ProfileAvatar, ProfileSection } from '@widgets/profile'
@@ -6,11 +7,8 @@ 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)
})
getMe()
.then((data) => console.log('[/me]', data))
.catch((err) => console.error('[/me] error:', err))
}, [])