Yuki Takei 1 год назад
Родитель
Сommit
66e2a20773

+ 0 - 0
apps/app/src/client/components/PageEditor/EditorNavbarBottom.module.scss → apps/app/src/client/components/PageEditor/EditorNavbarBottom/EditorNavbarBottom.module.scss


+ 3 - 5
apps/app/src/client/components/PageEditor/EditorNavbarBottom.tsx → apps/app/src/client/components/PageEditor/EditorNavbarBottom/EditorNavbarBottom.tsx

@@ -7,10 +7,10 @@ import styles from './EditorNavbarBottom.module.scss';
 
 const moduleClass = styles['grw-editor-navbar-bottom'];
 
-const SavePageControls = dynamic(() => import('~/client/components/SavePageControls').then(mod => mod.SavePageControls), { ssr: false });
-const OptionsSelector = dynamic(() => import('~/client/components/PageEditor/OptionsSelector').then(mod => mod.OptionsSelector), { ssr: false });
+const SavePageControls = dynamic(() => import('./SavePageControls').then(mod => mod.SavePageControls), { ssr: false });
+const OptionsSelector = dynamic(() => import('./OptionsSelector').then(mod => mod.OptionsSelector), { ssr: false });
 
-const EditorNavbarBottom = (): JSX.Element => {
+export const EditorNavbarBottom = (): JSX.Element => {
 
   const { t } = useTranslation();
   const { mutate: mutateDrawerOpened } = useDrawerOpened();
@@ -44,5 +44,3 @@ const EditorNavbarBottom = (): JSX.Element => {
     </div>
   );
 };
-
-export default EditorNavbarBottom;

+ 0 - 0
apps/app/src/client/components/SavePageControls/GrantSelector/GrantSelector.tsx → apps/app/src/client/components/PageEditor/EditorNavbarBottom/GrantSelector.tsx


+ 0 - 0
apps/app/src/client/components/PageEditor/OptionsSelector.tsx → apps/app/src/client/components/PageEditor/EditorNavbarBottom/OptionsSelector.tsx


+ 4 - 3
apps/app/src/client/components/SavePageControls.tsx → apps/app/src/client/components/PageEditor/EditorNavbarBottom/SavePageControls.tsx

@@ -21,9 +21,10 @@ import { useSWRxCurrentPage, useCurrentPagePath } from '~/stores/page';
 import { useIsDeviceLargerThanMd, useSelectedGrant } from '~/stores/ui';
 import loggerFactory from '~/utils/logger';
 
-import { NotAvailable } from './NotAvailable';
-import { GrantSelector } from './SavePageControls/GrantSelector';
-import { SlackNotification } from './SlackNotification';
+import { NotAvailable } from '../../NotAvailable';
+import { SlackNotification } from '../../SlackNotification';
+
+import { GrantSelector } from './GrantSelector';
 
 
 declare global {

+ 1 - 0
apps/app/src/client/components/PageEditor/EditorNavbarBottom/index.ts

@@ -0,0 +1 @@
+export * from './EditorNavbarBottom';

+ 1 - 1
apps/app/src/client/components/PageEditor/PageEditor.tsx

@@ -48,7 +48,7 @@ import { useEditingClients } from '~/stores/use-editing-clients';
 import loggerFactory from '~/utils/logger';
 
 import { EditorNavbar } from './EditorNavbar';
-import EditorNavbarBottom from './EditorNavbarBottom';
+import { EditorNavbarBottom } from './EditorNavbarBottom';
 import Preview from './Preview';
 import { useScrollSync } from './ScrollSyncHelper';
 import { useConflictResolver, useConflictEffect, type ConflictHandler } from './conflict';

+ 0 - 1
apps/app/src/client/components/SavePageControls/GrantSelector/index.ts

@@ -1 +0,0 @@
-export * from './GrantSelector';