Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pfo-omicsstudio committed Nov 29, 2024
1 parent 85f791b commit 14bee00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@mantine/modals/src/ModalsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export function ModalsProvider({ children, modalProps, labels, modals }: ModalsP
});

const ctx: ModalsContextProps = {
modalProps,
modalProps: modalProps || {},
modals: state.modals,
openModal,
openConfirmModal,
Expand Down
2 changes: 1 addition & 1 deletion packages/@mantine/modals/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type ModalState =
| { id: string; props: OpenContextModal; type: 'context'; ctx: string };

export interface ModalsContextProps {
modalProps?: ModalSettings,
modalProps: ModalSettings,
modals: ModalState[];
openModal: (props: ModalSettings) => string;
openConfirmModal: (props: OpenConfirmModal) => string;
Expand Down

0 comments on commit 14bee00

Please sign in to comment.