website refactor
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { ContainerProvider } from '@/lib/di/providers/ContainerProvider';
|
||||
import { QueryClientProvider } from '@/lib/providers/QueryClientProvider';
|
||||
import { AuthProvider } from '@/lib/auth/AuthContext';
|
||||
import { AuthProvider } from '@/components/auth/AuthContext';
|
||||
import { FeatureFlagProvider } from '@/lib/feature/FeatureFlagProvider';
|
||||
import { NotificationProvider } from '@/components/notifications/NotificationProvider';
|
||||
import { NotificationIntegration } from '@/components/errors/NotificationIntegration';
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { DriverViewModel } from "@/lib/view-models/DriverViewModel";
|
||||
import { ProtestViewModel } from "@/lib/view-models/ProtestViewModel";
|
||||
import { RaceViewModel } from "@/lib/view-models/RaceViewModel";
|
||||
import { Box } from "@/ui/Box";
|
||||
import { Card } from "@/ui/Card";
|
||||
import { ProtestListItem } from "./ProtestListItem";
|
||||
@@ -12,7 +13,10 @@ import { Flag } from "lucide-react";
|
||||
interface PendingProtestsListProps {
|
||||
protests: ProtestViewModel[];
|
||||
drivers: Record<string, DriverViewModel>;
|
||||
races: Record<string, RaceViewModel>;
|
||||
leagueId: string;
|
||||
onReviewProtest: (protest: ProtestViewModel) => void;
|
||||
onProtestReviewed?: () => void;
|
||||
}
|
||||
|
||||
export function PendingProtestsList({
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
Settings,
|
||||
Shield
|
||||
} from 'lucide-react';
|
||||
import { useAuth } from '@/lib/auth/AuthContext';
|
||||
import { useAuth } from '@/components/auth/AuthContext';
|
||||
import { useEffectiveDriverId } from '@/hooks/useEffectiveDriverId';
|
||||
import { DriverViewModel as DriverViewModelClass } from '@/lib/view-models/DriverViewModel';
|
||||
import { useFindDriverById } from '@/hooks/driver/useFindDriverById';
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
import React from 'react';
|
||||
import { Button } from '@/ui/Button';
|
||||
import { useEffectiveDriverId } from "@/hooks/useEffectiveDriverId";
|
||||
import { useTeamMembership, useJoinTeam, useLeaveTeam } from "@/hooks/team";
|
||||
import { useTeamMembership } from "@/hooks/team/useTeamMembership";
|
||||
import { useJoinTeam } from "@/hooks/team/useJoinTeam";
|
||||
import { useLeaveTeam } from "@/hooks/team/useLeaveTeam";
|
||||
|
||||
interface JoinTeamButtonProps {
|
||||
teamId: string;
|
||||
|
||||
@@ -13,7 +13,10 @@ import { JoinRequestList } from '@/ui/JoinRequestList';
|
||||
import { JoinRequestItem } from '@/ui/JoinRequestItem';
|
||||
import { DangerZone } from '@/ui/DangerZone';
|
||||
import { MinimalEmptyState } from '@/components/shared/state/EmptyState';
|
||||
import { useTeamJoinRequests, useUpdateTeam, useApproveJoinRequest, useRejectJoinRequest } from "@/hooks/team";
|
||||
import { useTeamJoinRequests } from "@/hooks/team/useTeamJoinRequests";
|
||||
import { useUpdateTeam } from "@/hooks/team/useUpdateTeam";
|
||||
import { useApproveJoinRequest } from "@/hooks/team/useApproveJoinRequest";
|
||||
import { useRejectJoinRequest } from "@/hooks/team/useRejectJoinRequest";
|
||||
import type { TeamJoinRequestViewModel } from '@/lib/view-models/TeamJoinRequestViewModel';
|
||||
|
||||
interface TeamAdminProps {
|
||||
|
||||
Reference in New Issue
Block a user