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

refactor: rename notify calls #651

Open
wants to merge 4 commits into
base: refactor/wallet-hook
Choose a base branch
from

Conversation

DanielSchiavini
Copy link
Contributor

Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:17am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 9:17am

@@ -84,6 +84,7 @@ const TableSettings = ({
searchText={searchParams.searchText}
handleInputChange={(val) => updatePath({ searchText: val })}
handleClose={() => updatePath({ searchText: '' })}
testId="search-pools"
Copy link
Collaborator

Choose a reason for hiding this comment

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

heh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry out of context but the cypress tests were broken 😨

@@ -102,15 +102,15 @@ const LoanCreate = ({ isLeverage = false, ...pageProps }: PageContentProps & { i
maxSlippage: string,
isLeverage: boolean,
) => {
const notify = notifyNotification(NOFITY_MESSAGE.pendingConfirm, 'pending')
const notification = notify(NOFITY_MESSAGE.pendingConfirm, 'pending')
Copy link
Collaborator

@0xAlunara 0xAlunara Jan 29, 2025

Choose a reason for hiding this comment

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

const { dismiss }? Would also allow you to get rid of that ?. below I think when calling it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that ?. is probably not necessary in some (most?) places, just didn't take the time to go through each one.
imo notification.dismiss() is more expressive

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.

3 participants