Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected cancel button functionality #1215

Closed
wants to merge 16 commits into from
2 changes: 1 addition & 1 deletion src/components/OrgListCard/OrgListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function orgListCard(props: InterfaceOrgListCardProps): JSX.Element {

function handleClick(): void {
const url = '/orgdash/id=' + _id;

console.log('clicked!');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, please check.

// Dont change the below two lines
window.location.replace(url);
history.push(url);
Expand Down
13 changes: 4 additions & 9 deletions src/screens/OrgList/OrgList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,9 @@ function orgList(): JSX.Element {
<div>
<div className={styles.flexdir}>
<p className={styles.titlemodal}>{t('manageFeatures')}</p>
<a
onClick={toggleDialogModal}
className={styles.cancel}
<Button
variant="secondary"
onClick={(): void => toggleDialogModal()}
data-testid="closeOrganizationModal"
>
<i
Expand All @@ -605,12 +605,7 @@ function orgList(): JSX.Element {
cursor: 'pointer',
}}
></i>
</a>
<Button
variant="secondary"
onClick={(): void => toggleModal()}
data-testid="closeOrganizationModal"
>
&nbsp;
{t('cancel')}
</Button>
</div>
Expand Down