|
|
@@ -2,14 +2,13 @@ import type { ReactNode } from 'react';
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
|
import type { ColorScheme } from '@growi/core';
|
|
|
+import dynamic from 'next/dynamic';
|
|
|
import Head from 'next/head';
|
|
|
-import { ToastContainer } from 'react-toastify';
|
|
|
import { useIsomorphicLayoutEffect } from 'usehooks-ts';
|
|
|
|
|
|
import { useNextThemes, NextThemesProvider } from '~/stores/use-next-themes';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
-
|
|
|
import styles from './RawLayout.module.scss';
|
|
|
|
|
|
const toastContainerClass = styles['grw-toast-container'] ?? '';
|
|
|
@@ -17,6 +16,9 @@ const toastContainerClass = styles['grw-toast-container'] ?? '';
|
|
|
const logger = loggerFactory('growi:cli:RawLayout');
|
|
|
|
|
|
|
|
|
+const ToastContainer = dynamic(() => import('react-toastify').then(mod => mod.ToastContainer), { ssr: false });
|
|
|
+
|
|
|
+
|
|
|
type Props = {
|
|
|
className?: string,
|
|
|
children?: ReactNode,
|