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

feat: add a confirmation modal on delete a bounty #731

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

maradondt
Copy link
Contributor

Describe your changes

Issue ticket number and link

closes #636

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested on Chrome and Firefox
  • I have tested on a mobile device
    Screenshot 2023-09-22 at 14 50 06
    Screenshot 2023-09-22 at 14 51 02

Comment on lines +41 to +43
hovercolor={'#E96464'}
activecolor={'#E15A5A'}
shadowcolor={'#ED747480'}
Copy link
Contributor

Choose a reason for hiding this comment

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

we can be using a const color for these


{children}
<Stack width="100%" direction="row" justifyContent="space-between">
<IconButton width={120} height={44} color="white" text="Cancel" onClick={closeHandler} />
Copy link
Contributor

Choose a reason for hiding this comment

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

we can be using a const color here

@@ -456,7 +492,7 @@ function FocusedView(props: FocusViewProps) {
config={config}
fromBountyPage={fromBountyPage}
extraModalFunction={props?.extraModalFunction}
deleteAction={deleteIt}
deleteAction={canDeleteBounty ? deleteHandler : undefined}
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use && instead of ? here

@kevkevinpal kevkevinpal merged commit 64407d0 into stakwork:master Sep 25, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a bounty should trigger a warning modal to confirm
2 participants