Skip to content

Commit

Permalink
fix: pass position prop to Toast component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Verster committed Oct 29, 2019
1 parent 02d0f21 commit b352d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const ToastProvider: React.FC<ToastContextType> = ({ children, position }) => {
style={position === 'BOTTOM' ? { bottom: 0 } : { top: 0 }}
>
{toasts.map((config: ToastConfig & ToastInternalConfig) => {
return <Toast key={config.id} onClose={(id) => hideToast(id)} {...config} />
return <Toast position={position} key={config.id} onClose={(id) => hideToast(id)} {...config} />
})}
</Box>
</ToastContext.Provider>
Expand Down

0 comments on commit b352d7f

Please # to comment.