We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6edfa69 commit 5a60b83Copy full SHA for 5a60b83
src/components/FileEditor/FileEditor.react.js
@@ -73,12 +73,10 @@ export default class FileEditor extends React.Component {
73
const file = this.props.value;
74
return (
75
<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}
77
<a className={styles.upload}>
78
<input ref='fileInput' type='file' onChange={this.handleChange.bind(this)} />
79
<span>{file ? 'Replace file' : 'Upload file'}</span>
80
</a>
81
- {file ? <a href='javascript:;' role='button' className={styles.delete} onClick={this.removeFile}>Delete</a> : null}
82
</div>
83
);
84
}
0 commit comments