remove core from pages

This commit is contained in:
2025-12-18 19:14:50 +01:00
parent 9814d9682c
commit 4a3087ae35
35 changed files with 552 additions and 354 deletions

View File

@@ -25,6 +25,7 @@ import { MembershipFeeService } from './payments/MembershipFeeService';
import { AuthService } from './auth/AuthService';
import { SessionService } from './auth/SessionService';
import { ProtestService } from './protests/ProtestService';
import { PenaltyService } from './penalties/PenaltyService';
export interface Services {
raceService: RaceService;
@@ -48,6 +49,7 @@ export interface Services {
authService: AuthService;
sessionService: SessionService;
protestService: ProtestService;
penaltyService: PenaltyService;
}
const ServicesContext = createContext<Services | null>(null);
@@ -82,6 +84,7 @@ export function ServiceProvider({ children }: ServiceProviderProps) {
authService: serviceFactory.createAuthService(),
sessionService: serviceFactory.createSessionService(),
protestService: serviceFactory.createProtestService(),
penaltyService: serviceFactory.createPenaltyService(),
};
}, []);