feature (admin): admin console

This commit is contained in:
Mickael KERJEAN
2018-12-07 12:54:28 +11:00
parent 1b591af5b3
commit ce6a228968
78 changed files with 2699 additions and 386 deletions

View File

@ -14,13 +14,16 @@ export class ModalAlert extends Popup {
alert.subscribe((Component, okCallback) => {
this.setState({
appear: true,
value: Component
value: Component,
fn: okCallback
});
});
}
onSubmit(e){
this.setState({appear: false});
this.setState({appear: false}, () => {
requestAnimationFrame(() => this.state.fn())
});
}
modalContentBody(){