Fix useState<any> declarations

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:24:44 +00:00
parent 65a6ed1acb
commit 05ba99e368
4 changed files with 53 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import { useState, useEffect } from 'react';
import { useParams, useNavigate, Link } from 'react-router-dom';
import { formatDistanceToNow } from 'date-fns';
import { User as SupabaseUser } from '@supabase/supabase-js';
import { Header } from '@/components/layout/Header';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -134,7 +135,7 @@ export default function Profile() {
const [profile, setProfile] = useState<ProfileType | null>(null);
const [loading, setLoading] = useState(true);
const [editing, setEditing] = useState(false);
const [currentUser, setCurrentUser] = useState<any>(null);
const [currentUser, setCurrentUser] = useState<SupabaseUser | null>(null);
const [editForm, setEditForm] = useState({
username: '',
display_name: '',