oshikishintaro 5 лет назад
Родитель
Сommit
4023e8cf06
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      src/client/js/components/MyDraftList/Draft.jsx

+ 6 - 6
src/client/js/components/MyDraftList/Draft.jsx

@@ -82,20 +82,20 @@ class Draft extends React.Component {
 
   renderAccordionTitle(isExist) {
     const { isPanelExpanded } = this.state;
-
+    const { t } = this.props;
     const iconClass = isPanelExpanded ? 'caret-opened' : '';
 
     return (
       <span>
-        <i className={`caret ${iconClass}`}></i>
+        <i className={` icon icon-arrow-up ${iconClass}`}></i>
         <span className="mx-2" onClick={() => this.setState({ isPanelExpanded: !isPanelExpanded })}>
           {this.props.path}
         </span>
-        { isExist && (
-          <span>({this.props.t('page exists')})</span>
-        ) }
         { !isExist && (
-          <span className="badge badge-secondary">draft</span>
+          <span className="badge badge-warning">{t('page exists')}</span>
+        ) }
+        { isExist && (
+          <span className="badge badge-info">draft</span>
         ) }
 
         <a className="ml-2" href={this.props.path}><i className="icon icon-login"></i></a>