mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 15:10:43 +08:00
fix: sonner theme not work
This commit is contained in:
@@ -4,8 +4,7 @@ import { useTheme } from "@/components/theme-provider.tsx";
|
||||
type ToasterProps = React.ComponentProps<typeof Sonner>;
|
||||
|
||||
const Toaster = ({ ...props }: ToasterProps) => {
|
||||
const { theme = "system" } = useTheme();
|
||||
|
||||
const { theme } = useTheme();
|
||||
return (
|
||||
<Sonner theme={theme as ToasterProps["theme"]} richColors className="toaster group" toastOptions={{}} {...props} />
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user