fix(frontend): remove unused default React imports and use typed FC/FormEvent where needed

This commit is contained in:
GitHub Actions
2025-11-30 00:42:48 +00:00
parent 5ee1feed64
commit dc0c8c42ac
6 changed files with 19 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
import React, { useState, useEffect } from 'react';
import { useState, useEffect, type ReactNode, type FC } from 'react';
import client from '../api/client';
import { AuthContext, User } from './AuthContextValue';
export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
export const AuthProvider: FC<{ children: ReactNode }> = ({ children }) => {
const [user, setUser] = useState<User | null>(null);
const [isLoading, setIsLoading] = useState(true);