fix: booker atoms using next/router (#14612)

* fix: booker OOO using next/router

* fixup! fix: booker OOO using next/router
This commit is contained in:
Morgan authored and GitHub committed 2024-04-16 18:37:24 +00:00
1 parent 268438b0ff
commit e3e464abfa
6 files changed
+13 -7

No files matched your search

@@ -1,14 +1,14 @@
import { useRouter } from "next/router";
import React from "react";
import { getLayout } from "@calcom/features/settings/layouts/SettingsLayout";
import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
import PageWrapper from "@components/PageWrapper";
import { OAuthClientForm } from "@components/settings/organizations/platform/oauth-clients/OAuthClientForm";
export const CreateOAuthClient = () => {
const router = useRouter();
const clientId = router.query.clientId as string | undefined;
const searchParams = useCompatSearchParams();
const clientId = searchParams?.get("clientId") || "";
return (
<div>
<OAuthClientForm clientId={clientId} />