From a0977adc81f1e18638119188242ad03ff973fd6c Mon Sep 17 00:00:00 2001 From: Dante Soares Date: Wed, 18 Oct 2023 13:48:41 -0300 Subject: [PATCH] Allow ErrorModal to set Error props --- src/components/ErrorModal.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ErrorModal.tsx b/src/components/ErrorModal.tsx index e4b9a9087..a36f11270 100644 --- a/src/components/ErrorModal.tsx +++ b/src/components/ErrorModal.tsx @@ -2,11 +2,15 @@ import { Button } from "./Button"; import { Modal, ModalFooter, ModalPropTypes } from "./Modal"; import { Error } from "./Error"; -type ErrorModalProps = React.PropsWithChildren>; +type ErrorModalProps = React.PropsWithChildren>; export const ErrorModal = (props: ErrorModalProps) => { - return - + const { children, heading, ...modalProps } = props; + + return + + {children} + ; };