mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Add GA4 events
This commit is contained in:
@@ -26,6 +26,7 @@ export type ProjectFile = {
|
||||
}
|
||||
|
||||
interface ProjectContext {
|
||||
projects: Project[],
|
||||
project: Project,
|
||||
file?: ProjectFile,
|
||||
changeProject: (name: string) => unknown,
|
||||
@@ -35,6 +36,7 @@ interface ProjectContext {
|
||||
closeFile: () => unknown,
|
||||
}
|
||||
const Project = createContext<ProjectContext>({
|
||||
projects: [DRAFT_PROJECT],
|
||||
project: DRAFT_PROJECT,
|
||||
changeProject: () => {},
|
||||
updateProject: () => {},
|
||||
@@ -105,6 +107,7 @@ export function ProjectProvider({ children }: { children: ComponentChildren }) {
|
||||
}, [])
|
||||
|
||||
const value: ProjectContext = {
|
||||
projects,
|
||||
project,
|
||||
file,
|
||||
changeProject: setProjectName,
|
||||
|
||||
Reference in New Issue
Block a user