Skip to content

Commit

Permalink
fix style not applied properly #870
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Nov 2, 2022
1 parent e507490 commit 80bf024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useToastContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,14 @@ export function useToastContainer(props: ToastContainerProps) {

const toastProps = {
...props,
style: props.toastStyle,
key: instance.toastKey++,
...options,
toastId,
updateId,
data,
closeToast,
isIn: false,
key: options.key || instance.toastKey++,
className: parseClassName(options.className || props.toastClassName),
bodyClassName: parseClassName(
options.bodyClassName || props.bodyClassName
Expand Down

0 comments on commit 80bf024

Please sign in to comment.