fix: modal transition not working (#433)

This commit is contained in:
Meier Lukas
2024-05-04 20:58:44 +02:00
committed by GitHub
parent 5abd438a49
commit b888fad1fc
2 changed files with 57 additions and 30 deletions

View File

@@ -5,7 +5,7 @@ import { useContext } from "react";
import { ModalContext } from ".";
import type { ModalDefinition, ModalState } from "./type";
type ModalStateWithReference = ModalState & {
export type ModalStateWithReference = ModalState & {
/**
* Reference to modal component instance
* Used so the modal can be persisted between navigating in newer modals
@@ -13,7 +13,7 @@ type ModalStateWithReference = ModalState & {
reference: ReturnType<typeof getModal>;
};
interface ModalsState {
export interface ModalsState {
modals: ModalStateWithReference[];
/**