Remove unused components and models for improved maintainability
- Deleted redundant components (`AddActionButton`, `AlertBox`, `AlertStack`, `BackButton`, `CancelButton`, and `CollapsableArea`) and related files. - Removed unused models (`Book`, `BookSerie`, `BookTables`, `Character`, and `Chapter`) to reduce codebase clutter. - Updated project structure and references to reflect these removals.
This commit is contained in:
10
context/WorldContext.ts
Executable file → Normal file
10
context/WorldContext.ts
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
import {WorldProps} from "@/lib/models/World";
|
||||
import {WorldProps} from "@/lib/types/world";
|
||||
import {createContext, Dispatch, SetStateAction} from "react";
|
||||
|
||||
export interface WorldContextProps {
|
||||
@@ -8,4 +8,10 @@ export interface WorldContextProps {
|
||||
isSeriesMode?: boolean;
|
||||
}
|
||||
|
||||
export const WorldContext = createContext<WorldContextProps>({} as WorldContextProps);
|
||||
export const WorldContext = createContext<WorldContextProps>({
|
||||
worlds: [],
|
||||
setWorlds: (): void => {
|
||||
},
|
||||
selectedWorldIndex: 0,
|
||||
isSeriesMode: false,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user