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

feat: markets page watchlist #7795

Open
wants to merge 4 commits into
base: feat_markets_category
Choose a base branch
from

Conversation

gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Sep 24, 2024

Description

Adds watchlist tab / icon to the markets page.

Issue (if applicable)

closes #7685

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Low

Testing

  • Asset page on desktop now has a star button that adds to watchlist
  • Markets Page has a watchlist button in cards

Engineering

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

Screenshot 2024-09-24 at 12 53 22 Screenshot 2024-09-24 at 13 16 34 Screenshot 2024-09-24 at 13 16 45

@gomesalexandre gomesalexandre requested a review from a team as a code owner September 24, 2024 11:16
@@ -96,6 +96,7 @@ export const AssetHeader: React.FC<AssetHeaderProps> = ({ assetId, accountId })
{name} {`(${symbol}${asset.id ? ` ${middleEllipsis(asset.id)}` : ''})`}
</Heading>

<WatchAssetButton assetId={assetId} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@reallybeard FYI, this adds watchlist capabilities on asset page for consistency with mobile

Screenshot 2024-09-24 at 12 53 22

}, [appDispatch, assetId, isAssetIdWatched])
const handleToggleWatchAsset: React.MouseEventHandler<HTMLButtonElement> = useCallback(
e => {
e.stopPropagation()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allows the larger hitbox of the card not to fire its own onClick

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.

1 participant