Better fix to native modals
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user