refactoring(frontend): isModalActive getter on Modal state
This commit is contained in:
parent
08b47991aa
commit
738fc3af1e
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ export class ModalProvider extends Component {
|
|||
|
||||
state = {
|
||||
component: null,
|
||||
get isModalActive() { return this.component !== null },
|
||||
props: {},
|
||||
showModal: this.showModal,
|
||||
hideModal: this.hideModal,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue