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}
|
||||
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')}
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user