-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
export function useHook({ | ||
hook, | ||
poolTokens, | ||
chain, | ||
}: { |
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.
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.
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.
There are different pool types in pools vs pool query, that's why decided to pass just properties
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.
Yeah, like I said, can you not just use the type Pool | PoolListItem
?
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.
fixed
packages/lib/modules/pool/PoolList/PoolListTable/PoolListTableRow.tsx
Outdated
Show resolved
Hide resolved
Changes done and reviewed by agualis
This pr adds hook tag on pools list
![Screenshot 2024-11-28 at 21 31 44](https://private-user-images.githubusercontent.com/46521087/390871075-b102693b-351d-4caa-9104-4f3922e1be5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODUwNzYsIm5iZiI6MTczODk4NDc3NiwicGF0aCI6Ii80NjUyMTA4Ny8zOTA4NzEwNzUtYjEwMjY5M2ItMzUxZC00Y2FhLTkxMDQtNGYzOTIyZTFiZTVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAzMTkzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhOTliMTk5MWJiNThhMGRlY2FjZjk5YmQzZmY3MmJiYTljN2I5YTc5MjEwNzg0ZmI0YjYxYTNlNTY0NTFlODcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CWuTiPkHhO-pUq3SeJmhBfeVStI6xAFUfo-JWAnLr5A)