* fix need to make changes link in calendar event * change /success link to /manage * delete success.tsx file and use next.js rewrites * fix e2e tests * remove not needed waitForNavigation * fix e2e tests * rename manage?uid to booking/uid * fix rewrite * remove not needed export * fix rescheduling e2e tests * Minor fixes/cleannup * Update BookingPage.tsx * Moves cancel page to rewrite Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: zomars <zomars@me.com>
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
import { useRouter } from "next/router";
|
|
|
|
export default function usePublicPage() {
|
|
const router = useRouter();
|
|
const isPublicPage = ["/[user]", "/booking", "/cancel", "/reschedule"].find((route) =>
|
|
router.pathname.startsWith(route)
|
|
);
|
|
return isPublicPage;
|
|
}
|