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> {
|
class ModalConfirmThumbnailUpload extends React.PureComponent<Props> {
|
||||||
upload() {
|
upload() {
|
||||||
this.props.upload(this.props.path, this.props.nsfw);
|
const { upload, closeModal, path, nsfw } = this.props;
|
||||||
this.props.closeModal();
|
upload(path, nsfw);
|
||||||
|
closeModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue