Skip to content

Commit

Permalink
feat: use command pattern to allow to go back/forward (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidyT authored Dec 9, 2024
1 parent 03bf572 commit 159fe17
Show file tree
Hide file tree
Showing 22 changed files with 553 additions and 657 deletions.
5 changes: 3 additions & 2 deletions src/context/SeasonContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ type Props = {
};

export const SeasonProvider = ({ children }: Props): ReactNode => {
const { period } = useSimulation();
const season = getMostPresentSeason(period.from, period.to);
const { date } = useSimulation();
// TODO: juste use the date...
const season = getMostPresentSeason(date, date);

const contextValue = useMemo(
() => ({
Expand Down
Loading

0 comments on commit 159fe17

Please sign in to comment.