Skip to content

Commit a39cddf

Browse files
committed
fix (playground): update toast options structure in ToastClientProvider
1 parent 30f934a commit a39cddf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

examples/nextjs/src/providers/toastProvider.tsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ const ToastClientProvider = (props: ToasterProperties) => {
1414
const { theme } = useTheme();
1515
return (
1616
<Toaster
17-
toastFont="font-sans"
1817
maxToasts={10}
1918
theme={theme as ToastTheme}
20-
toastIcons={{
21-
info: <InfoIcon className="text-blue-500" />,
22-
error: <CircleX className="text-red-500" />,
23-
warning: <CircleAlert className="text-yellow-500" />,
24-
success: <CircleCheck className="text-green-500" />,
25-
loading: <LoaderIcon className="animate-spin text-gray-500" />,
19+
toastOptions={{
20+
font: 'font-sans',
21+
icons: {
22+
info: <InfoIcon className="text-blue-500" />,
23+
error: <CircleX className="text-red-500" />,
24+
warning: <CircleAlert className="text-yellow-500" />,
25+
success: <CircleCheck className="text-green-500" />,
26+
loading: <LoaderIcon className="animate-spin text-gray-500" />,
27+
},
2628
}}
2729
{...props}
2830
/>

0 commit comments

Comments
 (0)