Skip to content

Commit a43e68e

Browse files
author
Jonatan Salas
committed
#2 Adding modal to confirm delete of file! This is working fine!
1 parent 64418ce commit a43e68e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/FileInfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class FileUploadItem extends Component {
9090
<Button onClick={() => this.showModal(false)}>
9191
Close
9292
</Button>
93-
<Button bsStyle="primary" onClick={onClick}>
93+
<Button bsStyle="primary" onClick={() => { onClick(); this.showModal(false)}}>
9494
Delete
9595
</Button>
9696
</Modal.Footer>

0 commit comments

Comments
 (0)