aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/contexts
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-04-12 18:02:56 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2026-04-12 18:02:56 +0200
commitcd0551534d8aaf3d3d5cc1727dfcc01d0637c6b2 (patch)
tree6c06381eb35f34bef66c9a67115f9760e5f78674 /src/frontend/app/contexts
parent7178807ef9724890b39dbf09e1de5b0a9c799a85 (diff)
Run formatter, split code in backend
Diffstat (limited to 'src/frontend/app/contexts')
-rw-r--r--src/frontend/app/contexts/JourneyContext.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/frontend/app/contexts/JourneyContext.tsx b/src/frontend/app/contexts/JourneyContext.tsx
index f513aa8..9c3c3ac 100644
--- a/src/frontend/app/contexts/JourneyContext.tsx
+++ b/src/frontend/app/contexts/JourneyContext.tsx
@@ -25,9 +25,7 @@ export interface ActiveJourney {
interface JourneyContextValue {
activeJourney: ActiveJourney | null;
- startJourney: (
- journey: Omit<ActiveJourney, "hasNotified">
- ) => void;
+ startJourney: (journey: Omit<ActiveJourney, "hasNotified">) => void;
stopJourney: () => void;
markNotified: () => void;
}
@@ -61,9 +59,7 @@ export function JourneyProvider({ children }: { children: ReactNode }) {
}, []);
const markNotified = useCallback(() => {
- setActiveJourney((prev) =>
- prev ? { ...prev, hasNotified: true } : null
- );
+ setActiveJourney((prev) => (prev ? { ...prev, hasNotified: true } : null));
}, []);
return (