Skip to content

Commit

Permalink
Made heading optional in ErrorModalProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dantemss committed Oct 18, 2023
1 parent a0977ad commit e3456fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ErrorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button } from "./Button";
import { Modal, ModalFooter, ModalPropTypes } from "./Modal";
import { Error } from "./Error";

type ErrorModalProps = React.PropsWithChildren<Omit<ModalPropTypes, 'variant'>>;
type ErrorModalProps = React.PropsWithChildren<Omit<ModalPropTypes, 'heading' | 'variant'> & { heading?: string }>;

export const ErrorModal = (props: ErrorModalProps) => {
const { children, heading, ...modalProps } = props;
Expand Down

0 comments on commit e3456fb

Please sign in to comment.