mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 16:11:13 -05:00
Refactor: Simplify auth and profile handling
This commit is contained in:
@@ -6,13 +6,12 @@ import { Separator } from '@/components/ui/separator';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { useToast } from '@/hooks/use-toast';
|
||||
import { useAuth } from '@/hooks/useAuth';
|
||||
import { useProfile } from '@/hooks/useProfile';
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { Download, BarChart3, Upload, FileText, History } from 'lucide-react';
|
||||
export function DataExportTab() {
|
||||
const {
|
||||
user,
|
||||
profile
|
||||
} = useAuth();
|
||||
const { user } = useAuth();
|
||||
const { data: profile } = useProfile(user?.id);
|
||||
const {
|
||||
toast
|
||||
} = useToast();
|
||||
|
||||
Reference in New Issue
Block a user