feat(frontend): add intake journal and shared note flows (#648)

* feat(backend): add intake journal APIs and share note support

* feat(frontend): add intake journal and shared note flows
This commit is contained in:
Daniel Volz
2026-05-24 14:00:30 +02:00
committed by GitHub
parent e4a1b449c6
commit c78fc43083
67 changed files with 5414 additions and 580 deletions
+4 -3
View File
@@ -19,14 +19,15 @@ export function useModalHistory(isOpen: boolean, modalKey: string, onClose: () =
useEffect(() => {
if (!isOpen) return;
const handlePopState = () => {
const handlePopState = (event: PopStateEvent) => {
if (pushedRef.current) {
pushedRef.current = false;
onClose();
event.stopImmediatePropagation();
}
};
window.addEventListener("popstate", handlePopState);
return () => window.removeEventListener("popstate", handlePopState);
window.addEventListener("popstate", handlePopState, { capture: true });
return () => window.removeEventListener("popstate", handlePopState, true);
}, [isOpen, onClose]);
}