Skip to content

Commit

Permalink
Removed the unused contexts from the lesson types root.
Browse files Browse the repository at this point in the history
  • Loading branch information
buchananwill committed Apr 14, 2024
1 parent 3ee5df0 commit b6ffdce
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 119 deletions.
3 changes: 0 additions & 3 deletions app/curriculum/delivery-models/adjust-allocation.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { useCurriculumModelContext } from './contexts/use-curriculum-model-context';
import React, { useMemo } from 'react';
import { UnsavedCurriculumModelChanges } from './contexts/curriculum-models-context-provider';
import { sumDeliveryAllocations } from './functions/sum-delivery-allocations';
import { useSelectiveContextDispatchBoolean } from '../../selective-context/components/typed/selective-context-manager-boolean';
import { WorkProjectSeriesSchemaDto } from '../../api/dtos/WorkProjectSeriesSchemaDtoSchema';
import { Flex, Text } from '@tremor/react';
import { StepperContext } from '../../contexts/stepper/stepper-context-creator';
Expand Down
13 changes: 1 addition & 12 deletions app/work-types/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import { ReactNode, Suspense } from 'react';
import { CurriculumModelsContextProvider } from '../curriculum/delivery-models/contexts/curriculum-models-context-provider';
import Loading from '../loading';
import ServiceCategoryContextProvider from './lessons/service-category-context-provider';
import WorkTaskFilteringContext from './work-task-filtering-context';

export default function Layout({ children }: { children: ReactNode }) {
return (
<ServiceCategoryContextProvider serviceCategories={{}}>
<WorkTaskFilteringContext>
<CurriculumModelsContextProvider models={{}}>
<Suspense fallback={<Loading />}>{children}</Suspense>
</CurriculumModelsContextProvider>
</WorkTaskFilteringContext>
</ServiceCategoryContextProvider>
);
return <Suspense fallback={<Loading />}>{children}</Suspense>;
}
68 changes: 0 additions & 68 deletions app/work-types/lessons/_service-category-context-provider.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions app/work-types/lessons/service-category-context-init.tsx

This file was deleted.

0 comments on commit b6ffdce

Please sign in to comment.