-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: new application redirect non logged users
- fix: include all query params when redirecting to login - refactor: new reservation login redirect to SSR only
- Loading branch information
Showing
9 changed files
with
253 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ReservationProps } from "@/context/DataContext"; | ||
import { useEffect } from "react"; | ||
import { useLocalStorage } from "react-use"; | ||
|
||
/// Local storage usage has been removed | ||
/// leaving this hook for now to cleanup any existing users | ||
export function useRemoveStoredReservation() { | ||
const [storedReservation, , removeStoredReservation] = | ||
useLocalStorage<ReservationProps>("reservation"); | ||
|
||
useEffect(() => { | ||
if (storedReservation) removeStoredReservation(); | ||
}, [storedReservation, removeStoredReservation]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.