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:
@@ -1,5 +1,5 @@
|
||||
import {ChapterProps} from "@/lib/models/Chapter";
|
||||
import {createContext, Dispatch, SetStateAction} from "react";
|
||||
import {ChapterProps} from "@/lib/types/chapter";
|
||||
import {Context, createContext, Dispatch, SetStateAction} from "react";
|
||||
|
||||
|
||||
export interface ChapterContextProps {
|
||||
@@ -7,8 +7,8 @@ export interface ChapterContextProps {
|
||||
setChapter: Dispatch<SetStateAction<ChapterProps | undefined>>
|
||||
}
|
||||
|
||||
export const ChapterContext = createContext<ChapterContextProps>({
|
||||
export const ChapterContext: Context<ChapterContextProps> = createContext<ChapterContextProps>({
|
||||
chapter: undefined,
|
||||
setChapter: () => {
|
||||
setChapter: (_value: SetStateAction<ChapterProps | undefined>): void => {
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user