diff --git a/packages/login/src/app/(root)/confirm/[Invite]/page.tsx b/packages/login/src/app/(root)/confirm/[Invite]/page.tsx index 36be1b60d3..e5658c58a7 100644 --- a/packages/login/src/app/(root)/confirm/[Invite]/page.tsx +++ b/packages/login/src/app/(root)/confirm/[Invite]/page.tsx @@ -25,7 +25,6 @@ // International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode import { notFound } from "next/navigation"; -import dynamic from "next/dynamic"; import { cookies, headers } from "next/headers"; import { FormWrapper } from "@docspace/shared/components/form-wrapper"; @@ -42,13 +41,6 @@ import { getUserFromConfirm, } from "@/utils/actions"; -const LanguageComboboxWrapper = dynamic( - () => import("@/components/LanguageCombobox"), - { - ssr: false, - }, -); - type LinkInviteProps = { searchParams: { [key: string]: string }; params: { Invite: string }; @@ -81,31 +73,28 @@ async function Page({ searchParams, params }: LinkInviteProps) { return ( <> -
- - {settings && typeof settings !== "string" && ( - <> - + + + - - - - - )} -
+ + + )} ); } diff --git a/packages/login/src/app/(root)/page.tsx b/packages/login/src/app/(root)/page.tsx index b7bece895c..4e227cee0f 100644 --- a/packages/login/src/app/(root)/page.tsx +++ b/packages/login/src/app/(root)/page.tsx @@ -42,14 +42,6 @@ import { GreetingLoginContainer } from "@/components/GreetingContainer"; import { FormWrapper } from "@docspace/shared/components/form-wrapper"; import { ColorTheme, ThemeId } from "@docspace/shared/components/color-theme"; import { cookies } from "next/headers"; -import dynamic from "next/dynamic"; - -const LanguageComboboxWrapper = dynamic( - () => import("@/components/LanguageCombobox"), - { - ssr: false, - }, -); async function Page({ searchParams, @@ -91,7 +83,6 @@ async function Page({ return ( <> - {settings && typeof settings !== "string" && ( import("@/components/LanguageCombobox"), - { - ssr: false, - }, -); - async function Page() { const settings = await getSettings(); @@ -67,29 +58,26 @@ async function Page() { ]); return ( - <> - - - <> - + <> + + + - - - - - - + + + ); }