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: add hook tag on pools list #211

Merged
merged 4 commits into from
Dec 3, 2024
Merged

feat: add hook tag on pools list #211

merged 4 commits into from
Dec 3, 2024

Conversation

alter-eggo
Copy link
Contributor

This pr adds hook tag on pools list
Screenshot 2024-11-28 at 21 31 44

Copy link

vercel bot commented Nov 28, 2024

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

Name Status Preview Comments Updated (UTC)
mono-beets-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 4:15pm
mono-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 4:15pm
mono-test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2024 4:15pm

Comment on lines 9 to 13
export function useHook({
hook,
poolTokens,
chain,
}: {
Copy link
Contributor

@garethfuller garethfuller Nov 28, 2024

Choose a reason for hiding this comment

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

Please revert to just pass in the pool. It's more verbose in all the components you need to use this hook or the hook tag component otherwise. If you did it because of the different pool types between the detail and list then just set the prop style as Pool | PoolListItem, it should work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are different pool types in pools vs pool query, that's why decided to pass just properties

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, like I said, can you not just use the type Pool | PoolListItem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@alter-eggo alter-eggo requested a review from agualis December 3, 2024 16:05
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