upfate timetrackers & todo

This commit is contained in:
Romulus21
2024-02-24 22:54:02 +01:00
parent d99b94be55
commit a818daeb38
9 changed files with 89 additions and 29 deletions

View File

@@ -7,6 +7,7 @@ const TrackerContext = createContext<TrackerProps|undefined>(undefined)
interface TrackerProps {
currentTimeTracker: timeTracker|null,
setCurrentTimeTracker: (timeTracker: timeTracker) => void,
startTrackToDo: (toDo: toDo) => void,
stopCurrentTimeTrack: () => void,
}
@@ -46,7 +47,7 @@ export const TrackerProvider = ({children}: PropsWithChildren) => {
}
}
return <TrackerContext.Provider value={{currentTimeTracker, startTrackToDo, stopCurrentTimeTrack}}>
return <TrackerContext.Provider value={{currentTimeTracker, setCurrentTimeTracker, startTrackToDo, stopCurrentTimeTrack}}>
{children}
</TrackerContext.Provider>
}