From 1363a1914d01910d065e2f2616786f82ca9e6c0c Mon Sep 17 00:00:00 2001 From: bwebs Date: Mon, 6 May 2024 09:05:26 -0700 Subject: [PATCH] toast config, deprecating nested config --- packages/components/src/components/index.tsx | 2 +- packages/react-toast/src/components/Toast/index.tsx | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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) {