diff --git a/frontend/src/components/UserSettings/Appearance.tsx b/frontend/src/components/UserSettings/Appearance.tsx index a941741..800d5be 100644 --- a/frontend/src/components/UserSettings/Appearance.tsx +++ b/frontend/src/components/UserSettings/Appearance.tsx @@ -14,7 +14,7 @@ const Appearance = () => { setTheme(e.value)} + onValueChange={(e) => setTheme(e.value || '')} value={theme} colorPalette="teal" > diff --git a/frontend/src/routes/_layout/classifyNews.tsx b/frontend/src/routes/_layout/classifyNews.tsx index 42cd5ec..446f67c 100644 --- a/frontend/src/routes/_layout/classifyNews.tsx +++ b/frontend/src/routes/_layout/classifyNews.tsx @@ -1,5 +1,5 @@ import { createFileRoute } from "@tanstack/react-router" -import React, { useState } from "react" +import { useState } from "react" import { Input, Button, Card, Spin, message, Typography, Space } from "antd" import { UtilsService } from "@/client" diff --git a/frontend/src/routes/_layout/items.tsx b/frontend/src/routes/_layout/items.tsx index 8a2ef07..c68c5b3 100644 --- a/frontend/src/routes/_layout/items.tsx +++ b/frontend/src/routes/_layout/items.tsx @@ -52,6 +52,7 @@ function ItemsTable() { const setPage = (page: number) => navigate({ + //@ts-ignore search: (prev: { [key: string]: string }) => ({ ...prev, page }), })