There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(component): mobile toast dark mode (#9142)
CatsJuice87bbcae5e2f0
diff --git a/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx b/packages/frontend/component/src/ui/notification/mobile/notification-center.tsxindex ce3e619be2..924a389653 100644--- a/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx+++ b/packages/frontend/component/src/ui/notification/mobile/notification-center.tsx@@ -1,8 +1,12 @@+import { useTheme } from 'next-themes';import { Toaster } from 'sonner';import { sonner } from './styles.css';export function MobileNotificationCenter() {+ const theme = useTheme();+ const resolvedTheme = theme.resolvedTheme as 'light' | 'dark';+return (<ToasterclassName={sonner}@@ -13,6 +17,7 @@ export function MobileNotificationCenter() {top: 'calc(env(safe-area-inset-top) + 16px)',pointerEvents: 'auto',}}+ theme={resolvedTheme}/>);}