@@ -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;
@@ -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 {