فهرست منبع

delete unused code

yuken 3 سال پیش
والد
کامیت
79a9097dd6
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      packages/app/src/components/MyDraftList/Draft.tsx

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

@@ -15,7 +15,7 @@ type DraftProps = {
   isExist: boolean,
   isExist: boolean,
   index: number,
   index: number,
   markdown: string,
   markdown: string,
-  clearDraft: () => void,
+  clearDraft: (path: string) => void,
 }
 }
 
 
 const Draft = (props: DraftProps): JSX.Element => {
 const Draft = (props: DraftProps): JSX.Element => {
@@ -94,7 +94,6 @@ const Draft = (props: DraftProps): JSX.Element => {
   };
   };
 
 
   const AccordionTitle = () => {
   const AccordionTitle = () => {
-    // const { t } = this.props;
     const iconClass = isPanelExpanded ? 'fa-rotate-90' : '';
     const iconClass = isPanelExpanded ? 'fa-rotate-90' : '';
 
 
     return (
     return (
@@ -131,9 +130,7 @@ const Draft = (props: DraftProps): JSX.Element => {
 
 
         <Collapse isOpen={isPanelExpanded} onEntering={expandPanelHandler} onExiting={collapsePanelHandler}>
         <Collapse isOpen={isPanelExpanded} onEntering={expandPanelHandler} onExiting={collapsePanelHandler}>
           <div className="card-body">
           <div className="card-body">
-            {/* contents */}
             { isPanelExpanded && (
             { isPanelExpanded && (
-              // <RevisionBody html={this.state.html} />
               <ReactMarkdown {...rendererOptions} className='wiki'>
               <ReactMarkdown {...rendererOptions} className='wiki'>
                 {markdown}
                 {markdown}
               </ReactMarkdown>
               </ReactMarkdown>