-
Notifications
You must be signed in to change notification settings - Fork 1
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
style: make manageUrl required #605
base: main
Are you sure you want to change the base?
Conversation
src/apps/aave/positions.ts
Outdated
@@ -175,6 +175,7 @@ const hook: PositionsHook = { | |||
title: `Claimable rewards`, | |||
description: 'For supplying and borrowing', | |||
imageUrl: AAVE_LOGO, | |||
manageUrl |
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 don't see this for allbridge too. I assume this is for making positions clickable right? Should this be a required field in the types then? Seems like this should be present for all positions. Or if some positions don't have a url we can link to, can we enforce it in TS so that this field is explicitly specified as undefined
rather than keeping it optional?
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.
@satish-ravi Addressed in 6718123! Hopefully this more explicit definition will result in the manageUrl
being provided more often.
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 see many apps' urls are undefined, but they do have websites (hedgey, stake-dao, ubeswap, etc). Can we add urls for these?
@satish-ravi added a mangeUrls for all the apps except HaloFi, Locked-CELO, and Mento (Only swap page found). |
@@ -124,6 +124,7 @@ const hook: PositionsHook = { | |||
title: `${tokenInfo.symbol} supply incentives`, | |||
description: 'Rewards for supplying', | |||
imageUrl: ALLBRIDGE_LOGO, | |||
manageUrl: `${ALLBRIDGE_POOLS_BASE_URL}?chain=${NETWORK_ID_TO_ALLBRIDGE_CHAIN[networkId]}`, |
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.
nit: could pull this to a local variable to avoid duplication
Description
Aave's ManageUrl was only used in dataProps and this PR adds it to displayProps.