|
|
@@ -4,11 +4,10 @@ import React, { useEffect, useState } from 'react';
|
|
|
import { UserIcon, PencilIcon } from '@heroicons/react/24/outline';
|
|
|
import { useParams, useNavigate } from 'react-router-dom';
|
|
|
import { userClient } from '@/client/api';
|
|
|
-import { useAuth } from '@/client/home/hooks/AuthProvider';
|
|
|
-import type { UserEntity } from '@/server/modules/users/user.entity';
|
|
|
+import { useAuth, User } from '@/client/home/hooks/AuthProvider';
|
|
|
|
|
|
const MemberPage: React.FC = () => {
|
|
|
- const [user, setUser] = useState<UserEntity | null>(null);
|
|
|
+ const [user, setUser] = useState<User | null>(null);
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
const { id: userId } = useParams<{ id: string }>();
|
|
|
const id = Number(userId);
|