-
Notifications
You must be signed in to change notification settings - Fork 4
refactor #644: update util file for toast notifications #646
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
base: develop
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Please fill out the PR template or put N/A for sections where it's not applicable. |
| @@ -0,0 +1,20 @@ | |||
| // Copyright (c) Gridiron Survivor. | |||
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'm not used to this file naming @shashilo. Also, I think I'd colocate the types like they were prior to this change or is this our coding standard?
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 move all of our types into its own file. The prefix I just indicate these are where the Interfaces are located.
…ts' into lillian/644-update-util-for-toasts
| @@ -0,0 +1,20 @@ | |||
| // Copyright (c) Gridiron Survivor. | |||
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 move all of our types into its own file. The prefix I just indicate these are where the Interfaces are located.
lib/interfaces/Iutils.ts
Outdated
| export interface processExchangeForToastProps { | ||
| exchange: GiftExchangeWithMemberCount; | ||
| toast: ToastFunction; | ||
| today?: Date; |
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.
This prop is not needed
Co-authored-by: Shashi Lo <[email protected]>
Co-authored-by: Shashi Lo <[email protected]>
…ts' into lillian/644-update-util-for-toasts
…ts' into lillian/644-update-util-for-toasts
Description
Before:
Interfaces for the Toast component were housed in the
lib/utils.tsfile.After:
interfaces/Iutils.ts)todayas propCloses #644
Testing instructions
N/A
Additional information
N/A
Pre-submission checklist
test #001: created unit test for __ component)Peer Code ReviewersandSenior+ Code Reviewersgroupsgis-code-questions