Commit cdee91be by archer

fix: ts

parent d36a7cb1
import React, { useCallback, useRef, useState, memo } from 'react';
import React, { useCallback, useRef } from 'react';
import {
Modal,
ModalOverlay,
......@@ -12,7 +12,7 @@ import {
Button
} from '@chakra-ui/react';
export const useEditTitle = ({
export const useEditInfo = ({
title,
placeholder = ''
}: {
......
......@@ -22,7 +22,7 @@ import { useChatStore } from '@/store/chat';
import ModelList from './ModelList';
import { useGlobalStore } from '@/store/global';
import styles from '../index.module.scss';
import { useEditTitle } from './useEditTitle';
import { useEditInfo } from '@/hooks/useEditInfo';
import { putChatHistory } from '@/api/chat';
import { useToast } from '@/hooks/useToast';
import { formatTimeToChatTime, getErrText } from '@/utils/tools';
......@@ -57,7 +57,7 @@ const PcSliderBar = ({
);
// custom title edit
const { onOpenModal, EditModal: EditTitleModal } = useEditTitle({
const { onOpenModal, EditModal: EditTitleModal } = useEditInfo({
title: '自定义历史记录标题',
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