1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

chore: fmt

This commit is contained in:
lencx 2023-01-25 10:20:50 +08:00
parent 655dda8efb
commit db7a4f0b01
4 changed files with 3 additions and 4 deletions

View File

@ -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('');

View File

@ -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}`;
};

View File

@ -30,7 +30,7 @@ const PopupSearchLabel = () => {
);
};
export default function General() {
export default function MainWindow() {
return (
<>
<Form.Item label={<PopupSearchLabel />} name="popup_search" valuePropName="checked">

View File

@ -17,7 +17,7 @@ const UALabel = () => {
);
};
export default function General() {
export default function TrayWindow() {
return (
<>
<Form.Item label="Enable SystemTray" name="tray" valuePropName="checked">