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:
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} />
|
||||
|
||||
Reference in new issue
Block a user