'feat:暗色模式样式修改'
This commit is contained in:
1 parent
ee8e2b3225
commit
372d4f7933
23 files changed
+594
-269
No files matched your search
@@ -17,6 +17,7 @@ import { toast } from "sonner";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { useTheme } from "@/contexts/ThemeContext";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import {
|
||||
Dialog,
|
||||
@@ -70,6 +71,7 @@ const emptyForm = {
|
||||
};
|
||||
|
||||
export default function AdminScheduledTasksPage() {
|
||||
const { theme } = useTheme();
|
||||
const navigate = useNavigate();
|
||||
const [searchParams] = useSearchParams();
|
||||
// ?task= carries the task to re-select when returning from a run detail.
|
||||
@@ -227,7 +229,10 @@ export default function AdminScheduledTasksPage() {
|
||||
onChange={(event) => setSearchInput(event.target.value)}
|
||||
placeholder="按任务名称搜索"
|
||||
/>
|
||||
<Button type="submit" variant="outline">
|
||||
<Button
|
||||
type="submit"
|
||||
variant={theme === "dark" ? "default" : "outline"}
|
||||
>
|
||||
<Search className="size-4" />
|
||||
搜索
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user