Skip to content

Commit

Permalink
react router fix (#7444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzuming authored Jan 14, 2025
1 parent 35c59c2 commit 8675c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion designer/client/src/components/RouteLeavingGuard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useEffect } from "react";
import { unsavedProcessChanges } from "../common/DialogMessages";
import { useWindows } from "../windowManager";
import { unstable_useBlocker as useBlocker } from "react-router-dom";
import { useBlocker } from "react-router-dom";

export function useRouteLeavingGuard(when: boolean) {
const { confirm } = useWindows();
Expand Down

0 comments on commit 8675c17

Please sign in to comment.