File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dashboard/src/components/ui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import useDirDetection from '@/hooks/use-dir-detection'
55type ToasterProps = React . ComponentProps < typeof Sonner >
66
77const Toaster = ( { ...props } : ToasterProps ) => {
8- const { resolvedTheme } = useTheme ( )
8+ const { resolvedTheme, radius } = useTheme ( )
99 const dir = useDirDetection ( )
1010
1111 return (
@@ -15,6 +15,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
1515 dir = { dir }
1616 position = { dir === 'rtl' ? 'top-left' : 'top-right' }
1717 toastOptions = { {
18+ style : { borderRadius : radius } ,
1819 classNames : {
1920 toast : 'group font-body toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg' ,
2021 description : 'group-[.toast]:text-muted-foreground' ,
You can’t perform that action at this time.
0 commit comments