|
@@ -1,4 +1,4 @@
|
|
|
-import React from 'react';
|
|
|
|
|
|
|
+import React, { useEffect } from 'react';
|
|
|
|
|
|
|
|
import { appWithTranslation } from 'next-i18next';
|
|
import { appWithTranslation } from 'next-i18next';
|
|
|
import { AppProps } from 'next/app';
|
|
import { AppProps } from 'next/app';
|
|
@@ -23,6 +23,10 @@ type GrowiAppProps = AppProps & {
|
|
|
function GrowiApp({ Component, pageProps }: GrowiAppProps): JSX.Element {
|
|
function GrowiApp({ Component, pageProps }: GrowiAppProps): JSX.Element {
|
|
|
useI18nextHMR(isDev);
|
|
useI18nextHMR(isDev);
|
|
|
|
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ import('bootstrap/dist/js/bootstrap');
|
|
|
|
|
+ }, []);
|
|
|
|
|
+
|
|
|
const commonPageProps = pageProps as CommonProps;
|
|
const commonPageProps = pageProps as CommonProps;
|
|
|
// useInterceptorManager(new InterceptorManager());
|
|
// useInterceptorManager(new InterceptorManager());
|
|
|
useGrowiVersion(commonPageProps.growiVersion);
|
|
useGrowiVersion(commonPageProps.growiVersion);
|