fix(dialog): fix structure of initialDialogContext to match with type

This commit is contained in:
p-sw 2024-07-16 19:07:33 +09:00
parent 14619f5311
commit 6c14cb1e51

View File

@ -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<
[IDialogContext, Dispatch<SetStateAction<IDialogContext>>]
>([