refactor: replace Toast with Sonner

This commit is contained in:
tao.chen
2026-08-26 14:06:12 +08:00
parent f99b543100
commit d7f3db1cc4
18 changed files with 126 additions and 320 deletions
+2
View File
@@ -8,6 +8,7 @@ import {
} from "react-router";
import type { Route } from "./+types/root";
import { Toaster } from "./components/ui/sonner";
import { AuthProvider } from "./context/AuthContext";
// Monaco 离线加载配置:必须在任何 <Editor> 挂载前执行,否则 loader 会默认
// 从 jsDelivr CDN 拉取 monaco,离线环境下编辑器初始化失败、永远 loading。
@@ -29,6 +30,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
</head>
<body>
{children}
<Toaster />
<ScrollRestoration />
<Scripts />
</body>