Login:Src:App: add dynamic import LanguageComboboxWrapper

This commit is contained in:
Darya Umrikhina 2024-08-14 19:14:41 +04:00
parent e5618f51f9
commit 25731566d9
2 changed files with 16 additions and 2 deletions

View File

@ -25,6 +25,7 @@
// 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 { FormWrapper } from "@docspace/shared/components/form-wrapper";
@ -38,7 +39,13 @@ import {
getThirdPartyProviders,
getUserFromConfirm,
} from "@/utils/actions";
import LanguageComboboxWrapper from "@/components/LanguageCombobox";
const LanguageComboboxWrapper = dynamic(
() => import("@/components/LanguageCombobox"),
{
ssr: false,
},
);
type LinkInviteProps = {
searchParams: { [key: string]: string };

View File

@ -40,9 +40,16 @@ import RecoverAccess from "@/components/RecoverAccess";
import Register from "@/components/Register";
import { GreetingLoginContainer } from "@/components/GreetingContainer";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import LanguageComboboxWrapper from "@/components/LanguageCombobox";
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,