Yuki Takei 1 年間 前
コミット
1942178928

+ 1 - 5
apps/app/src/components-universal/Layout/ShareLinkLayout.tsx

@@ -3,8 +3,6 @@ import React from 'react';
 
 
 import dynamic from 'next/dynamic';
 import dynamic from 'next/dynamic';
 
 
-import { useEditorModeClassName } from '../../client/services/layout';
-
 import { RawLayout } from './RawLayout';
 import { RawLayout } from './RawLayout';
 
 
 const PageCreateModal = dynamic(() => import('~/components/PageCreateModal'), { ssr: false });
 const PageCreateModal = dynamic(() => import('~/components/PageCreateModal'), { ssr: false });
@@ -18,10 +16,8 @@ type Props = {
 }
 }
 
 
 export const ShareLinkLayout = ({ children }: Props): JSX.Element => {
 export const ShareLinkLayout = ({ children }: Props): JSX.Element => {
-  const className = useEditorModeClassName();
-
   return (
   return (
-    <RawLayout className={className}>
+    <RawLayout>
 
 
       <div className="page-wrapper">
       <div className="page-wrapper">
         {children}
         {children}

+ 1 - 1
apps/app/src/stores-universal/use-next-themes.tsx

@@ -3,7 +3,7 @@ import { isClient } from '@growi/core/dist/utils';
 import { ThemeProvider, useTheme } from 'next-themes';
 import { ThemeProvider, useTheme } from 'next-themes';
 import type { ThemeProviderProps, UseThemeProps } from 'next-themes/dist/types';
 import type { ThemeProviderProps, UseThemeProps } from 'next-themes/dist/types';
 
 
-import { useForcedColorScheme } from '../stores/context';
+import { useForcedColorScheme } from './context';
 
 
 export const Themes = {
 export const Themes = {
   ...ColorScheme,
   ...ColorScheme,