feat: похуйу
This commit is contained in:
@@ -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))
|
||||
}, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user