-
Notifications
You must be signed in to change notification settings - Fork 341
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
Fix Notifications for Facility Cover Image Deletion #7609
base: develop
Are you sure you want to change the base?
Fix Notifications for Facility Cover Image Deletion #7609
Conversation
@AnkurPrabhu is attempting to deploy a commit to the Open Healthcare Network Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@rithviknishad we already had notification for deletion its just that due to re-renders it does not show it. this should fix it |
<CareIcon icon="l-save" className="text-lg" /> | ||
)} | ||
<span> | ||
{isDeleting ? `${t("Deleting")}...` : `${t("delete")}`} |
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.
why are we using capital key Deleting
? 🤔
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.
will change it to deleting
{isDeleting ? ( | ||
<CareIcon | ||
icon="l-spinner" | ||
className="animate-spin text-lg" | ||
/> | ||
) : ( | ||
<CareIcon icon="l-save" className="text-lg" /> | ||
)} | ||
<span> | ||
{isDeleting ? `${t("Deleting")}...` : `${t("delete")}`} |
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.
Don't we have something simlar to disabling cover that disables the entrie action on save?
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.
i just used what we already do for upload we just wanted a re-render to happen here in order to fix the bug, should i remove it ?
pls take a look @bodhish |
LGTM |
Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions. |
LGTM |
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.
@AnkurPrabhu can u also move the constants (that doesn't depend on any state) outside the function
@khavinshankar can you explain as in what do you mean by constants here |
Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
screenshot:
![Screenshot 2024-04-15 at 12 57 27 AM](https://private-user-images.githubusercontent.com/85862184/322306974-69388e2f-1f8a-46f8-a3b5-c604622b47bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MzEwNzYsIm5iZiI6MTcxODgzMDc3NiwicGF0aCI6Ii84NTg2MjE4NC8zMjIzMDY5NzQtNjkzODhlMmYtMWY4YS00NmY4LWEzYjUtYzYwNDYyMmI0N2JiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDIwNTkzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyNDNkNWQxY2Y2NzU1OTgwMTNhOGU3ZDhhMmQ4MzhiMzZkMTc4ZDFkYmVmMzRkMWNjNjljYTgzNTAwMjQ1NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.e-MIiXpoBGZXL_QSJBG8yUfhQK3gUhzEzl2VI3ECGDs)