Commit cdee91be by archer

fix: ts

parent d36a7cb1
import React, { useCallback, useRef, useState, memo } from 'react'; import React, { useCallback, useRef } from 'react';
import { import {
Modal, Modal,
ModalOverlay, ModalOverlay,
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
Button Button
} from '@chakra-ui/react'; } from '@chakra-ui/react';
export const useEditTitle = ({ export const useEditInfo = ({
title, title,
placeholder = '' placeholder = ''
}: { }: {
......
...@@ -22,7 +22,7 @@ import { useChatStore } from '@/store/chat'; ...@@ -22,7 +22,7 @@ import { useChatStore } from '@/store/chat';
import ModelList from './ModelList'; import ModelList from './ModelList';
import { useGlobalStore } from '@/store/global'; import { useGlobalStore } from '@/store/global';
import styles from '../index.module.scss'; import styles from '../index.module.scss';
import { useEditTitle } from './useEditTitle'; import { useEditInfo } from '@/hooks/useEditInfo';
import { putChatHistory } from '@/api/chat'; import { putChatHistory } from '@/api/chat';
import { useToast } from '@/hooks/useToast'; import { useToast } from '@/hooks/useToast';
import { formatTimeToChatTime, getErrText } from '@/utils/tools'; import { formatTimeToChatTime, getErrText } from '@/utils/tools';
...@@ -57,7 +57,7 @@ const PcSliderBar = ({ ...@@ -57,7 +57,7 @@ const PcSliderBar = ({
); );
// custom title edit // custom title edit
const { onOpenModal, EditModal: EditTitleModal } = useEditTitle({ const { onOpenModal, EditModal: EditTitleModal } = useEditInfo({
title: '自定义历史记录标题', title: '自定义历史记录标题',
placeholder: '如果设置为空,会自动跟随聊天记录。' placeholder: '如果设置为空,会自动跟随聊天记录。'
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment