yuken 3 лет назад
Родитель
Сommit
71b3ee3850

+ 1 - 3
packages/app/src/components/MyDraftList/Draft.tsx

@@ -18,7 +18,7 @@ type DraftProps = {
   clearDraft: (path: string) => void,
 }
 
-const Draft = (props: DraftProps): JSX.Element => {
+export const Draft = (props: DraftProps): JSX.Element => {
 
   const {
     path, isExist, index, markdown, clearDraft,
@@ -142,5 +142,3 @@ const Draft = (props: DraftProps): JSX.Element => {
     </div>
   );
 };
-
-export default Draft;

+ 1 - 1
packages/app/src/components/MyDraftList/MyDraftList.jsx

@@ -10,7 +10,7 @@ import { apiGet } from '~/client/util/apiv1-client';
 import PaginationWrapper from '../PaginationWrapper';
 import { withUnstatedContainers } from '../UnstatedUtils';
 
-import Draft from './Draft';
+import { Draft } from './Draft';
 
 class MyDraftList extends React.Component {