upfate timetrackers & todo
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user