|
|
@@ -6,9 +6,10 @@ import dynamic from 'next/dynamic';
|
|
|
|
|
|
import { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
import { CommonProps, useCustomTitle } from '~/pages/utils/commons';
|
|
|
-import { retrieveServerSideProps } from '../../utils/admin-page-util';
|
|
|
import { useIsAclEnabled } from '~/stores/context';
|
|
|
|
|
|
+import { retrieveServerSideProps } from '../../utils/admin-page-util';
|
|
|
+
|
|
|
const AdminLayout = dynamic(() => import('~/components/Layout/AdminLayout'), { ssr: false });
|
|
|
const UserGroupPage = dynamic(() => import('~/components/Admin/UserGroup/UserGroupPage').then(mod => mod.UserGroupPage), { ssr: false });
|
|
|
|
|
|
@@ -38,7 +39,7 @@ const injectServerConfigurations = async(context: GetServerSidePropsContext, pro
|
|
|
const { aclService } = crowi;
|
|
|
|
|
|
props.isAclEnabled = aclService.isAclEnabled();
|
|
|
-}
|
|
|
+};
|
|
|
|
|
|
export const getServerSideProps: GetServerSideProps = async(context: GetServerSidePropsContext) => {
|
|
|
const props = await retrieveServerSideProps(context, injectServerConfigurations);
|