Skip to content

Commit

Permalink
fix(modal): optimize import
Browse files Browse the repository at this point in the history
  • Loading branch information
sfeng-coveo committed Feb 4, 2025
1 parent b73ecfa commit e57a58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mantine/src/components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import {
ModalFactory as MantineModalFactory,
ModalProps as MantineModalProps,
} from '@mantine/core';
import {ModalFooter, ModalFooter as PlasmaModalFooter} from './ModalFooter';
import {ModalFooter as PlasmaModalFooter} from './ModalFooter';

// Need to redeclare the factory to override and add footer to the props type
type PlasmaModalFactory = Omit<MantineModalFactory, 'staticComponents'> & {
staticComponents: MantineModalFactory['staticComponents'] & {
Footer: typeof ModalFooter;
Footer: typeof PlasmaModalFooter;
};
};

Expand Down

0 comments on commit e57a58e

Please sign in to comment.