Skip to content

Commit

Permalink
fix(): Remove sonner export.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Feb 26, 2024
1 parent 327b7dd commit 5049365
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/shadcn/ui/sonner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Toaster as Sonner, toast} from "sonner"

type ToasterProps = React.ComponentProps<typeof Sonner>

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

return (
Expand All @@ -27,5 +27,3 @@ const Toaster = ({ ...props }: ToasterProps) => {
/>
)
}

export const sonner = {Toaster, toast }

0 comments on commit 5049365

Please sign in to comment.