Refactor invite components to comment out unused UI elements

- Commented out the button for copying team and project links in the invite team members and project member invite drawer components, respectively, to streamline the UI.
- Adjusted conditional rendering for the checkbox related to project invitations to improve code clarity and maintainability.
This commit is contained in:
shancds
2025-07-23 08:48:01 +05:30
parent da791e2cb7
commit c4400d178f
2 changed files with 8 additions and 6 deletions

View File

@@ -102,14 +102,14 @@ const InviteTeamMembers = () => {
loading={loading}
footer={
<Flex justify="space-between">
<Button
{/* <Button
style={{ width: 140, fontSize: 12 }}
block
icon={<LinkOutlined />}
disabled
>
{t('copyTeamLink')}
</Button>
</Button> */}
<Flex justify="end">
<Button onClick={form.submit} style={{ fontSize: 12 }}>
{t('addToTeamButton')}

View File

@@ -190,10 +190,10 @@ const ProjectMemberDrawer = () => {
{validateEmail(searchTerm) ? t('inviteAsAMember') : t('inviteNewMemberByEmail')}
</span>
</Button>
{isFromAssigner && <Flex>
{/* {isFromAssigner && <Flex>
<input className='mr-2' type="checkbox" checked={true} name={t('alsoInviteToProject')} id="AlsoInviteToProject" />
<label htmlFor={t('alsoInviteToProject')}>{t('alsoInviteToProject')}</label>
</Flex>}
</Flex>} */}
</Flex>
);
@@ -206,14 +206,16 @@ const ProjectMemberDrawer = () => {
onCancel={() => dispatch(toggleProjectMemberDrawer())}
afterOpenChange={handleOpenChange}
footer={
!isFromAssigner && <Button
<>
{/* {!isFromAssigner && <Button
style={{ width: 140, fontSize: 12 }}
block
icon={<LinkOutlined />}
disabled
>
{t('copyProjectLink')}
</Button>
</Button>} */}
</>
}
>
<Form form={form} layout="vertical" onFinish={handleSelectChange}>