瀏覽代碼

clean code

Yuki Takei 8 年之前
父節點
當前提交
738ef2d786
共有 1 個文件被更改,包括 4 次插入8 次删除
  1. 4 8
      resource/js/components/PageAttachment/DeleteAttachmentModal.js

+ 4 - 8
resource/js/components/PageAttachment/DeleteAttachmentModal.js

@@ -28,9 +28,9 @@ export default class DeleteAttachmentModal extends React.Component {
     }
 
     return (
-        <p className="attachment-delete-file">
-          <i className="fa fa-file-o"></i>
-        </p>
+      <p className="attachment-delete-file">
+        <i className="fa fa-file-o"></i>
+      </p>
     );
   }
 
@@ -40,9 +40,6 @@ export default class DeleteAttachmentModal extends React.Component {
       return null;
     }
 
-
-    const inUse = this.props.inUse;
-
     const props = Object.assign({}, this.props);
     delete props.onAttachmentDeleteClickedConfirm;
     delete props.attachmentToDelete;
@@ -71,8 +68,7 @@ export default class DeleteAttachmentModal extends React.Component {
         <Modal.Footer>
           {deletingIndicator}
           <Button onClick={this._onDeleteConfirm} bsStyle="danger"
-            disabled={this.props.deleting}
-            >Delete!</Button>
+            disabled={this.props.deleting}>Delete!</Button>
         </Modal.Footer>
       </Modal>
     );