Explorar o código

relocate AuthorInfo

Yuki Takei %!s(int64=2) %!d(string=hai) anos
pai
achega
8f77028b20

+ 0 - 0
apps/app/src/components/Navbar/AuthorInfo.module.scss → apps/app/src/components/AuthorInfo/AuthorInfo.module.scss


+ 0 - 0
apps/app/src/components/Navbar/AuthorInfo.tsx → apps/app/src/components/AuthorInfo/AuthorInfo.tsx


+ 1 - 0
apps/app/src/components/AuthorInfo/index.ts

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

+ 1 - 1
apps/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -52,7 +52,7 @@ const SubNavButtons = dynamic<SubNavButtonsProps>(
   () => import('./SubNavButtons').then(mod => mod.SubNavButtons),
   { ssr: false, loading: () => <></> },
 );
-const PageAuthorInfo = dynamic(() => import('./PageAuthorInfo').then(mod => mod.PageAuthorInfo), {
+const PageAuthorInfo = dynamic(() => import('../PageAuthorInfo/PageAuthorInfo').then(mod => mod.PageAuthorInfo), {
   ssr: false,
 });
 

+ 0 - 0
apps/app/src/components/Navbar/PageAuthorInfo.module.scss → apps/app/src/components/PageAuthorInfo/PageAuthorInfo.module.scss


+ 1 - 1
apps/app/src/components/Navbar/PageAuthorInfo.tsx → apps/app/src/components/PageAuthorInfo/PageAuthorInfo.tsx

@@ -7,7 +7,7 @@ import { useCurrentPathname } from '~/stores/context';
 import { useSWRxCurrentPage } from '~/stores/page';
 import { useIsAbleToShowPageAuthors } from '~/stores/ui';
 
-import { AuthorInfo } from './AuthorInfo';
+import { AuthorInfo } from '../AuthorInfo';
 
 
 import styles from './PageAuthorInfo.module.scss';

+ 2 - 2
apps/app/src/components/PageContentFooter.tsx

@@ -3,11 +3,11 @@ import React from 'react';
 import type { IPage, IUser } from '@growi/core';
 import dynamic from 'next/dynamic';
 
-import type { AuthorInfoProps } from './Navbar/AuthorInfo';
+import type { AuthorInfoProps } from './AuthorInfo';
 
 import styles from './PageContentFooter.module.scss';
 
-const AuthorInfo = dynamic<AuthorInfoProps>(() => import('./Navbar/AuthorInfo').then(mod => mod.AuthorInfo), { ssr: false });
+const AuthorInfo = dynamic<AuthorInfoProps>(() => import('./AuthorInfo').then(mod => mod.AuthorInfo), { ssr: false });
 
 export type PageContentFooterProps = {
   page: IPage,