Skip to content

Conversation

@lillian-nguyen
Copy link
Contributor

@lillian-nguyen lillian-nguyen commented Oct 23, 2025

Description

Before:

Interfaces for the Toast component were housed in the lib/utils.ts file.

After:

  • Interfaces are moved into a separate file (interfaces/Iutils.ts)
  • Remove today as prop

Closes #644

Testing instructions

N/A

Additional information

N/A

Pre-submission checklist

  • Code builds and passes locally
  • PR title follows Conventional Commit format (e.g. test #001: created unit test for __ component)
  • Request reviews from the Peer Code Reviewers and Senior+ Code Reviewers groups
  • Thread has been created in Discord and PR is linked in gis-code-questions

@vercel
Copy link

vercel bot commented Oct 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
elecretanta Ready Ready Preview Comment Oct 31, 2025 2:30am
elecretanta-storybook Ready Ready Preview Comment Oct 31, 2025 2:30am
elecretanta-unit-test Ready Ready Preview Comment Oct 31, 2025 2:30am

@nickytonline
Copy link
Member

Description

Before:

Describe previous behavior

After:

Describe new behavior, including what was changed and why

Closes #644

Testing instructions

Additional information

Share any additional info that may provide context for the PR evaluation (performance considerations, design choices, etc)

[optional] Screenshots

Pre-submission checklist

  • Code builds and passes locally
  • PR title follows Conventional Commit format (e.g. test #001: created unit test for __ component)
  • Request reviews from the Peer Code Reviewers and Senior+ Code Reviewers groups
  • Thread has been created in Discord and PR is linked in gis-code-questions

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.
Copy link
Member

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?

Copy link
Collaborator

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.

@@ -0,0 +1,20 @@
// Copyright (c) Gridiron Survivor.
Copy link
Collaborator

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.

export interface processExchangeForToastProps {
exchange: GiftExchangeWithMemberCount;
toast: ToastFunction;
today?: Date;
Copy link
Collaborator

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

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.

Update util file for toast notifications

4 participants