-
Notifications
You must be signed in to change notification settings - Fork 60
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
Conversation
hovercolor={'#E96464'} | ||
activecolor={'#E15A5A'} | ||
shadowcolor={'#ED747480'} |
There was a problem hiding this comment.
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} /> |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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
Describe your changes
Issue ticket number and link
closes #636
Type of change
Please delete options that are not relevant.
Checklist before requesting a review