Skip to content

Commit 80bf024

Browse files
committed
fix style not applied properly fkhadra#870
1 parent e507490 commit 80bf024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hooks/useToastContainer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,14 @@ export function useToastContainer(props: ToastContainerProps) {
136136

137137
const toastProps = {
138138
...props,
139+
style: props.toastStyle,
140+
key: instance.toastKey++,
139141
...options,
140142
toastId,
141143
updateId,
142144
data,
143145
closeToast,
144146
isIn: false,
145-
key: options.key || instance.toastKey++,
146147
className: parseClassName(options.className || props.toastClassName),
147148
bodyClassName: parseClassName(
148149
options.bodyClassName || props.bodyClassName

0 commit comments

Comments
 (0)