mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed modal provider
This commit is contained in:
parent
5849e68258
commit
5b28313afd
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ export class ModalStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
setCurrent = <T extends Dialog>(current: T, props: DialogContentProps[T]) => {
|
setCurrent = <T extends Dialog>(current: T, props: DialogContentProps[T]) => {
|
||||||
this.props = props;
|
this.props = current ? props : {};
|
||||||
this.current = current ?? {};
|
this.current = current;
|
||||||
};
|
};
|
||||||
|
|
||||||
hide = () => {
|
hide = () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue