mirror of
https://github.com/lencx/ChatGPT.git
synced 2024-10-01 01:06:13 -04:00
chore: fmt
This commit is contained in:
parent
655dda8efb
commit
db7a4f0b01
2
src/view/model/UserCustom/index.tsx
vendored
2
src/view/model/UserCustom/index.tsx
vendored
@ -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('');
|
||||
|
1
src/view/notes/config.tsx
vendored
1
src/view/notes/config.tsx
vendored
@ -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}`;
|
||||
};
|
||||
|
2
src/view/settings/MainWindow.tsx
vendored
2
src/view/settings/MainWindow.tsx
vendored
@ -30,7 +30,7 @@ const PopupSearchLabel = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default function General() {
|
||||
export default function MainWindow() {
|
||||
return (
|
||||
<>
|
||||
<Form.Item label={<PopupSearchLabel />} name="popup_search" valuePropName="checked">
|
||||
|
2
src/view/settings/TrayWindow.tsx
vendored
2
src/view/settings/TrayWindow.tsx
vendored
@ -17,7 +17,7 @@ const UALabel = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default function General() {
|
||||
export default function TrayWindow() {
|
||||
return (
|
||||
<>
|
||||
<Form.Item label="Enable SystemTray" name="tray" valuePropName="checked">
|
||||
|
Loading…
Reference in New Issue
Block a user