fix(dialog): fix structure of initialDialogContext to match with type
This commit is contained in:
parent
14619f5311
commit
6c14cb1e51
@ -20,7 +20,10 @@ export interface IDialogContext {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const initialDialogContext: IDialogContext = { opened: false, id: "" };
|
export const initialDialogContext: IDialogContext = {
|
||||||
|
opened: false,
|
||||||
|
ids: { title: "", dialog: "", description: "" },
|
||||||
|
};
|
||||||
export const DialogContext = createContext<
|
export const DialogContext = createContext<
|
||||||
[IDialogContext, Dispatch<SetStateAction<IDialogContext>>]
|
[IDialogContext, Dispatch<SetStateAction<IDialogContext>>]
|
||||||
>([
|
>([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user