mirror of
https://github.com/multica-ai/multica.git
synced 2026-06-17 03:38:32 +02:00
- Extract MulticaIcon and ThemeProvider to packages/ui (remove duplication) - Extract shared CSS (scrollbar, shiki, entrance-spin) to packages/ui/styles/base.css - Add NavigationAdapter.openInNewTab/getShareableUrl for platform-agnostic navigation - Fix window.open() / window.location.href in shared views to use NavigationAdapter - Add resolve.dedupe for React in electron-vite config - Fix desktop tsconfig (noImplicitAny: true) - Use catalog: for all desktop dependencies - Add shadcn + tw-animate-css to desktop dependencies (fix phantom deps) - Add typecheck scripts to all shared packages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
656 B
TypeScript
17 lines
656 B
TypeScript
"use client"
|
|
|
|
// Re-export the shared ThemeProvider from @multica/ui
|
|
export { ThemeProvider } from "@multica/ui/components/common/theme-provider"
|
|
|
|
// Suppress React 19 false-positive about next-themes' inline <script>.
|
|
// The script works correctly; React 19 just warns about any <script> in components.
|
|
// See: https://github.com/pacocoursey/next-themes/issues/337
|
|
if (typeof window !== "undefined" && process.env.NODE_ENV === "development") {
|
|
const orig = console.error;
|
|
console.error = (...args: unknown[]) => {
|
|
if (typeof args[0] === "string" && args[0].includes("Encountered a script tag"))
|
|
return;
|
|
orig.apply(console, args);
|
|
};
|
|
}
|