Skip to content

Commit

Permalink
fix(Toaster): import ComponentProps type from react
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jan 2, 2025
1 parent 514e477 commit 6982b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ui/Toaster.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"use client";

import { useTheme } from "next-themes";
import type { ComponentProps } from "react";
import { Toaster as Sonner } from "sonner";

type ToasterProps = React.ComponentProps<typeof Sonner>;
type ToasterProps = ComponentProps<typeof Sonner>;

const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme();
Expand Down

0 comments on commit 6982b04

Please # to comment.