add confirmThumbnailUpload modal

This commit is contained in:
Travis Eden 2018-04-02 12:03:12 -04:00 committed by Sean Yesmunt
parent 8def65f1d8
commit 96ac407b0e

View file

@ -13,8 +13,9 @@ type Props = {
class ModalConfirmThumbnailUpload extends React.PureComponent<Props> {
upload() {
this.props.upload(this.props.path, this.props.nsfw);
this.props.closeModal();
const { upload, closeModal, path, nsfw } = this.props;
upload(path, nsfw);
closeModal();
}
render() {