Skip to content

Commit 5a60b83

Browse files
committed
removed Download & delete option from file Editor
1 parent 6edfa69 commit 5a60b83

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/FileEditor/FileEditor.react.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ export default class FileEditor extends React.Component {
7373
const file = this.props.value;
7474
return (
7575
<div ref='input' style={{ minWidth: this.props.width }} className={styles.editor}>
76-
{file && file.url() ? <a href={file.url()} target='_blank' role='button' className={styles.download}>Download</a> : null}
7776
<a className={styles.upload}>
7877
<input ref='fileInput' type='file' onChange={this.handleChange.bind(this)} />
7978
<span>{file ? 'Replace file' : 'Upload file'}</span>
8079
</a>
81-
{file ? <a href='javascript:;' role='button' className={styles.delete} onClick={this.removeFile}>Delete</a> : null}
8280
</div>
8381
);
8482
}

0 commit comments

Comments
 (0)