From b352d7fa8e6ca246788d46d6062f4c319e8f08cf Mon Sep 17 00:00:00 2001 From: Jean Verster Date: Tue, 29 Oct 2019 12:56:39 +0200 Subject: [PATCH] fix: pass position prop to Toast component --- src/Context/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Context/index.tsx b/src/Context/index.tsx index d17b141..2975436 100644 --- a/src/Context/index.tsx +++ b/src/Context/index.tsx @@ -48,7 +48,7 @@ const ToastProvider: React.FC = ({ children, position }) => { style={position === 'BOTTOM' ? { bottom: 0 } : { top: 0 }} > {toasts.map((config: ToastConfig & ToastInternalConfig) => { - return hideToast(id)} {...config} /> + return hideToast(id)} {...config} /> })}