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:
@@ -102,14 +102,14 @@ const InviteTeamMembers = () => {
|
|||||||
loading={loading}
|
loading={loading}
|
||||||
footer={
|
footer={
|
||||||
<Flex justify="space-between">
|
<Flex justify="space-between">
|
||||||
<Button
|
{/* <Button
|
||||||
style={{ width: 140, fontSize: 12 }}
|
style={{ width: 140, fontSize: 12 }}
|
||||||
block
|
block
|
||||||
icon={<LinkOutlined />}
|
icon={<LinkOutlined />}
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
{t('copyTeamLink')}
|
{t('copyTeamLink')}
|
||||||
</Button>
|
</Button> */}
|
||||||
<Flex justify="end">
|
<Flex justify="end">
|
||||||
<Button onClick={form.submit} style={{ fontSize: 12 }}>
|
<Button onClick={form.submit} style={{ fontSize: 12 }}>
|
||||||
{t('addToTeamButton')}
|
{t('addToTeamButton')}
|
||||||
|
|||||||
@@ -190,10 +190,10 @@ const ProjectMemberDrawer = () => {
|
|||||||
{validateEmail(searchTerm) ? t('inviteAsAMember') : t('inviteNewMemberByEmail')}
|
{validateEmail(searchTerm) ? t('inviteAsAMember') : t('inviteNewMemberByEmail')}
|
||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
{isFromAssigner && <Flex>
|
{/* {isFromAssigner && <Flex>
|
||||||
<input className='mr-2' type="checkbox" checked={true} name={t('alsoInviteToProject')} id="AlsoInviteToProject" />
|
<input className='mr-2' type="checkbox" checked={true} name={t('alsoInviteToProject')} id="AlsoInviteToProject" />
|
||||||
<label htmlFor={t('alsoInviteToProject')}>{t('alsoInviteToProject')}</label>
|
<label htmlFor={t('alsoInviteToProject')}>{t('alsoInviteToProject')}</label>
|
||||||
</Flex>}
|
</Flex>} */}
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -206,14 +206,16 @@ const ProjectMemberDrawer = () => {
|
|||||||
onCancel={() => dispatch(toggleProjectMemberDrawer())}
|
onCancel={() => dispatch(toggleProjectMemberDrawer())}
|
||||||
afterOpenChange={handleOpenChange}
|
afterOpenChange={handleOpenChange}
|
||||||
footer={
|
footer={
|
||||||
!isFromAssigner && <Button
|
<>
|
||||||
|
{/* {!isFromAssigner && <Button
|
||||||
style={{ width: 140, fontSize: 12 }}
|
style={{ width: 140, fontSize: 12 }}
|
||||||
block
|
block
|
||||||
icon={<LinkOutlined />}
|
icon={<LinkOutlined />}
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
{t('copyProjectLink')}
|
{t('copyProjectLink')}
|
||||||
</Button>
|
</Button>} */}
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Form form={form} layout="vertical" onFinish={handleSelectChange}>
|
<Form form={form} layout="vertical" onFinish={handleSelectChange}>
|
||||||
|
|||||||
Reference in New Issue
Block a user