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.
2 parents 5f89ab3 + 55637ea commit 5ec80edCopy full SHA for 5ec80ed
src/components/common/FileInfo.js
@@ -23,12 +23,6 @@ export default class FileUploadItem extends Component {
23
this.setState({ show: show });
24
};
25
26
- deleteFile = () => {
27
- let { onClick } = this.props;
28
- onClick();
29
- this.showModal(false);
30
- };
31
-
32
render() {
33
let { file, height, width, onClick } = this.props;
34
let { show } = this.state;
@@ -90,7 +84,7 @@ export default class FileUploadItem extends Component {
90
84
<Button onClick={() => this.showModal(false)}>
91
85
Close
92
86
</Button>
93
- <Button bsStyle="primary" onClick={this.deleteFile}>
87
+ <Button bsStyle="primary" onClick={() => { onClick(); this.showModal(false)}}>
94
88
Delete
95
89
96
</Modal.Footer>
0 commit comments