-
Notifications
You must be signed in to change notification settings - Fork 77
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
added metamask check if user is connected for reality link #1188
Conversation
…es based on metmask
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.
This is good, but there are other places where we set the reality link which need to be updated. Bonus points if you can consolidate the reality link generating process to single place and display the generated link in each corresponding location.
app/src/components/market/common/additional_market_data/index.tsx
Outdated
Show resolved
Hide resolved
Yeah that makes sense! I made new commit as you can see i made custom hook that encapsulates that logic and i just imported it everywhere i saw that reality link was used...I thought about passing useRealityLink state from open component to additional market data component via props but i think that will makes code more unreadable....what do you think? |
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.
Good work 👏
No description provided.