Commit 6fee3987 by Archer Committed by archer

fix ts (#4239)

* sync collection

* remove lock

* fix ts

* fix: ts
parent 87e90c37
...@@ -18,7 +18,11 @@ export const useCopyData = () => { ...@@ -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 }) { ...@@ -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} />}
</> </>
); );
......
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