mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 08:31:13 -05:00
Fix useState<any> declarations
This commit is contained in:
@@ -5,8 +5,30 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/com
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
|
||||
interface AuthDiagnosticsData {
|
||||
timestamp: string;
|
||||
storage: {
|
||||
type: string;
|
||||
persistent: boolean;
|
||||
};
|
||||
session: {
|
||||
exists: boolean;
|
||||
user: string | null;
|
||||
expiresAt: number | null;
|
||||
error: string | null;
|
||||
};
|
||||
network: {
|
||||
online: boolean;
|
||||
};
|
||||
environment: {
|
||||
url: string;
|
||||
isIframe: boolean;
|
||||
cookiesEnabled: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthDiagnostics() {
|
||||
const [diagnostics, setDiagnostics] = useState<any>(null);
|
||||
const [diagnostics, setDiagnostics] = useState<AuthDiagnosticsData | null>(null);
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const runDiagnostics = async () => {
|
||||
|
||||
Reference in New Issue
Block a user