Skip to content

Commit

Permalink
fix(fe): fixed light theme in sonner (#1125)
Browse files Browse the repository at this point in the history
* fix(fe): remove theme in sooner

* fix: rollback to original source
  • Loading branch information
dayongkr authored Jan 2, 2024
1 parent 122969d commit 5d69a6a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend-client/components/ui/sonner.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
'use client'

import { useTheme } from 'next-themes'
// TODO: Uncomment this when we have a dark theme
// 'use client'
// import { useTheme } from 'next-themes'
import { Toaster as Sonner } from 'sonner'

type ToasterProps = React.ComponentProps<typeof Sonner>

const Toaster = ({ ...props }: ToasterProps) => {
const { theme = 'system' } = useTheme()
// const { theme = 'system' } = useTheme()

return (
<Sonner
theme={theme as ToasterProps['theme']}
// theme={theme as ToasterProps['theme']}
theme="light"
className="toaster group"
toastOptions={{
classNames: {
Expand Down

0 comments on commit 5d69a6a

Please sign in to comment.