File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {Button} from './Button';
1111import { X } from 'lucide-react' ;
1212import './Toast.css' ;
1313import { flushSync } from 'react-dom' ;
14+ import { CSSProperties } from 'react' ;
1415
1516// Define the type for your toast content. This interface defines the properties of your toast content, affecting what you
1617// pass to the queue calls as arguments.
@@ -38,7 +39,7 @@ export function MyToastRegion() {
3839 // The ToastRegion should be rendered at the root of your app.
3940 < ToastRegion queue = { queue } >
4041 { ( { toast} ) => (
41- < MyToast toast = { toast } style = { { viewTransitionName : toast . key } } >
42+ < MyToast toast = { toast } style = { { viewTransitionName : toast . key } as CSSProperties } >
4243 < ToastContent >
4344 < Text slot = "title" > { toast . content . title } </ Text >
4445 { toast . content . description && (
You can’t perform that action at this time.
0 commit comments