diff --git a/packages/components/src/components/index.tsx b/packages/components/src/components/index.tsx index 5c8838ac..e05ca545 100644 --- a/packages/components/src/components/index.tsx +++ b/packages/components/src/components/index.tsx @@ -193,7 +193,7 @@ export const CourierComponents: React.FunctionComponent = () => { {toastElement && createPortal( }> - + , toastElement )} diff --git a/packages/react-toast/src/components/Toast/index.tsx b/packages/react-toast/src/components/Toast/index.tsx index 87207168..b20f524b 100644 --- a/packages/react-toast/src/components/Toast/index.tsx +++ b/packages/react-toast/src/components/Toast/index.tsx @@ -21,11 +21,7 @@ import { defaultConfig } from "~/defaults"; const GlobalStyle = createGlobalStyle`${toastCss}`; -export const Toast: React.FunctionComponent< - IToastConfig & { - config?: IToastConfig; - } -> = (props) => { +export const Toast: React.FunctionComponent = (props) => { const courierContext = useCourier(); if (!courierContext) {