mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
@@ -18,7 +18,11 @@ export const useCopyData = () => {
|
|||||||
const { setCopyContent } = useCommonStore();
|
const { setCopyContent } = useCommonStore();
|
||||||
|
|
||||||
const copyData = useCallback(
|
const copyData = useCallback(
|
||||||
async (data: string, title = t('common:common.Copy Successful'), duration = 1000) => {
|
async (
|
||||||
|
data: string,
|
||||||
|
title: string | null | undefined = t('common:common.Copy Successful'),
|
||||||
|
duration = 1000
|
||||||
|
) => {
|
||||||
data = data.trim();
|
data = data.trim();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@@ -385,13 +385,7 @@ function MemberTable({ Tabs }: { Tabs: React.ReactNode }) {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<ConfirmLeaveTeamModal />
|
<ConfirmLeaveTeamModal />
|
||||||
{isOpenInvite && userInfo?.team?.teamId && (
|
{isOpenInvite && userInfo?.team?.teamId && <InviteModal onClose={onCloseInvite} />}
|
||||||
<InviteModal
|
|
||||||
teamId={userInfo.team.teamId}
|
|
||||||
onClose={onCloseInvite}
|
|
||||||
onSuccess={refetchMembers}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{isOpenTeamTagsAsync && <TeamTagModal onClose={onCloseTeamTagsAsync} />}
|
{isOpenTeamTagsAsync && <TeamTagModal onClose={onCloseTeamTagsAsync} />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user