add confirmThumbnailUpload modal
This commit is contained in:
parent
8def65f1d8
commit
96ac407b0e
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue