Better fix to native modals
This commit is contained in:
parent
be121da134
commit
f7d2a8935c
1 changed files with 2 additions and 4 deletions
|
@ -30,10 +30,8 @@ export const ModalsContainer = observer(function ModalsContainer() {
|
||||||
store.shell.closeModal()
|
store.shell.closeModal()
|
||||||
}
|
}
|
||||||
|
|
||||||
const activeModal = React.useMemo(
|
const activeModal =
|
||||||
() => store.shell.activeModals[store.shell.activeModals.length - 1],
|
store.shell.activeModals[store.shell.activeModals.length - 1]
|
||||||
[store.shell.activeModals],
|
|
||||||
)
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (store.shell.isModalActive) {
|
if (store.shell.isModalActive) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue