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

#1583 Abstracted Refund Modal #2680

Merged
merged 8 commits into from
Jul 5, 2024
Merged

#1583 Abstracted Refund Modal #2680

merged 8 commits into from
Jul 5, 2024

Conversation

walker-sean
Copy link
Member

Changes

Made an abstract refund modal that is used by the report refund modal and created an edit refund modal that also uses it

Screenshots

If you made UI changes you must post a screenshot of the whole page for each change in 1) a normal sized window and 2) the smallest possible window

If you did any manual testing (e.g., with Postman), put screenshots of the http request and before and after of the db

If none of this applies, you can delete this section

image
image

Checklist

It can be helpful to check the Checks and Files changed tabs.
Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

  • All commits are tagged with the ticket number
  • No linting errors / newline at end of file warnings
  • All code follows repository-configured prettier formatting
  • No merge conflicts
  • All checks passing
  • Screenshots of UI changes (see Screenshots section)
  • Remove any non-applicable sections of this template
  • Assign the PR to yourself
  • No yarn.lock changes (unless dependencies have changed)
  • Request reviewers & ping on Slack
  • PR is linked to the ticket (fill in the closes line below)

Closes #1583

@walker-sean walker-sean self-assigned this Jun 25, 2024
Copy link
Contributor

@Aaryan1203 Aaryan1203 left a comment

Choose a reason for hiding this comment

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

One small comment and a question but otherwise looks good

src/frontend/src/pages/FinancePage/RefundsSection.tsx Outdated Show resolved Hide resolved
interface RefundModalProps {
showModal: boolean;
handleClose: () => void;
mutateAsync: (data: any) => void; // if anyone can figure out how to change this without raising type errors, be my guest
Copy link
Contributor

Choose a reason for hiding this comment

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

what did you want to change it to? Like whats wrong with this

Copy link
Member Author

Choose a reason for hiding this comment

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

Just that it uses any, but I think I know how to fix it now

Aaryan1203
Aaryan1203 previously approved these changes Jul 2, 2024
Copy link
Contributor

@Aaryan1203 Aaryan1203 left a comment

Choose a reason for hiding this comment

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

Just some merge conflicts then lgtm

@walker-sean walker-sean merged commit 86fe01c into develop Jul 5, 2024
4 checks passed
@walker-sean walker-sean deleted the #1583-edit-refund-modal branch July 5, 2024 02:55
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.

Finances Fixes - Edit Refund Modal
2 participants