diff --git a/src/view/model/UserCustom/index.tsx b/src/view/model/UserCustom/index.tsx index 591d35f..6236b18 100644 --- a/src/view/model/UserCustom/index.tsx +++ b/src/view/model/UserCustom/index.tsx @@ -12,7 +12,7 @@ import { chatRoot, fmtDate } from '@/utils'; import { modelColumns } from './config'; import UserCustomForm from './Form'; -export default function LanguageModel() { +export default function UserCustom() { const { rowSelection, selectedRowIDs } = useTableRowSelection(); const [isVisible, setVisible] = useState(false); const [jsonPath, setJsonPath] = useState(''); diff --git a/src/view/notes/config.tsx b/src/view/notes/config.tsx index 53ed522..fa100ac 100644 --- a/src/view/notes/config.tsx +++ b/src/view/notes/config.tsx @@ -67,6 +67,5 @@ const RenderPath = ({ row }: any) => { }; export const getPath = async (row: any) => { - const isImg = ['png'].includes(row?.ext); return (await path.join(await chatRoot(), 'notes', row.id)) + `.${row.ext}`; }; diff --git a/src/view/settings/MainWindow.tsx b/src/view/settings/MainWindow.tsx index 0235ab7..d940b07 100644 --- a/src/view/settings/MainWindow.tsx +++ b/src/view/settings/MainWindow.tsx @@ -30,7 +30,7 @@ const PopupSearchLabel = () => { ); }; -export default function General() { +export default function MainWindow() { return ( <> } name="popup_search" valuePropName="checked"> diff --git a/src/view/settings/TrayWindow.tsx b/src/view/settings/TrayWindow.tsx index 7415911..2500c3d 100644 --- a/src/view/settings/TrayWindow.tsx +++ b/src/view/settings/TrayWindow.tsx @@ -17,7 +17,7 @@ const UALabel = () => { ); }; -export default function General() { +export default function TrayWindow() { return ( <>