-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: refactor/wallet-hook
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -84,6 +84,7 @@ const TableSettings = ({ | |||
searchText={searchParams.searchText} | |||
handleInputChange={(val) => updatePath({ searchText: val })} | |||
handleClose={() => updatePath({ searchText: '' })} | |||
testId="search-pools" |
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.
heh
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.
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') |
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.
const { dismiss }
? Would also allow you to get rid of that ?.
below I think when calling it
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.
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
notify as notifyNotification
bynotify