-
Notifications
You must be signed in to change notification settings - Fork 437
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
🛠️ Replaced useDispatch w. useQuery: DeathReport (src/Components/DeathReport/DeathReport.tsx) #6450
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hello, @rithviknishad @khavinshankar @mathew-alex In this PR I changed useDispatch with useQuery. It is working as expected and cypress tests for DeathReport are also passing. so, can you review this PR once? Note:
|
@rithviknishad, I have changed the code as per the requested changes. Can you review this PR once? |
LGTM |
WHAT
🤖 Generated by Copilot at 949d809
This pull request improves the code quality and readability of the DeathReport component and the API request for getting patient details. It uses the useQuery and useEffect hooks, and adds type annotations for the routes.getPatient object in
src/Redux/api.tsx
.Proposed Changes
useDispatch
w.useQuery
/request
: DeathReport (src/Components/DeathReport/**
) #6328@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 949d809
DeathReport.tsx
(link, link)DeathReport.tsx
(link)DeathReport.tsx
(link)api.tsx
(link)