From 5d69a6af76a9be9466ecf3d0abfe965655c13611 Mon Sep 17 00:00:00 2001 From: Dayong Lee Date: Tue, 2 Jan 2024 11:41:13 +0000 Subject: [PATCH] fix(fe): fixed light theme in sonner (#1125) * fix(fe): remove theme in sooner * fix: rollback to original source --- frontend-client/components/ui/sonner.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend-client/components/ui/sonner.tsx b/frontend-client/components/ui/sonner.tsx index a027d7cdb9..fc6cfae0d9 100644 --- a/frontend-client/components/ui/sonner.tsx +++ b/frontend-client/components/ui/sonner.tsx @@ -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 const Toaster = ({ ...props }: ToasterProps) => { - const { theme = 'system' } = useTheme() + // const { theme = 'system' } = useTheme() return (