Rename Event context files
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*import { createContext } from "react";
|
||||
|
||||
export const EventContext = createContext(null);*/
|
||||
|
||||
|
||||
import { createContext } from "react";
|
||||
|
||||
export type Task = {
|
||||
name: string;
|
||||
description: string;
|
||||
start: string | Date;
|
||||
end: string | Date;
|
||||
};
|
||||
|
||||
export type EventGroup = {
|
||||
date: string;
|
||||
name: string;
|
||||
start: string | Date;
|
||||
tasks: Task[];
|
||||
};
|
||||
|
||||
export type EventContextType = {
|
||||
events: EventGroup[];
|
||||
};
|
||||
|
||||
export const EventContext = createContext<EventContextType | null>(null);
|
||||
Reference in New Issue
Block a user