perf: member tableui (#4353)

This commit is contained in:
Archer
2025-03-27 10:55:54 +08:00
committed by GitHub
parent f3a069bc80
commit 9d97b60561
7 changed files with 14 additions and 150 deletions

View File

@@ -4,6 +4,7 @@ import MyModal from '@fastgpt/web/components/common/MyModal';
import { useToast } from '@fastgpt/web/hooks/useToast';
import { useTranslation } from 'next-i18next';
import { useRequest2 } from '@fastgpt/web/hooks/useRequest';
import FormLabel from '@fastgpt/web/components/common/MyBox/FormLabel';
export const useEditTitle = ({
title,
@@ -89,11 +90,7 @@ export const useEditTitle = ({
return (
<MyModal isOpen={isOpen} onClose={onClose} iconSrc={iconSrc} title={title} maxW={'500px'}>
<ModalBody>
{!!tip && (
<Box mb={2} color={'myGray.500'} fontSize={'sm'}>
{tip}
</Box>
)}
{!!tip && <FormLabel mb={2}>{tip}</FormLabel>}
<Input
ref={inputRef}