-
Notifications
You must be signed in to change notification settings - Fork 63
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
TW-760: [epic] NFT update #934
Conversation
src/app/pages/Collectibles/components/CollectibleBlur/index.tsx
Outdated
Show resolved
Hide resolved
@@ -702,6 +702,9 @@ | |||
"send": { | |||
"message": "Send" | |||
}, | |||
"floorPrice": { "message": "Floor" }, |
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.
Why inline?
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.
Why not?
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.
because it's out of style
titleI18nKey: TID; | ||
} | ||
|
||
export const TabsBar = React.forwardRef<HTMLDivElement, Props>(({ activeTabName, tabs, withOutline }, ref) => ( |
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.
the same, I think it's a little bit confusing that 2 components based on one file
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.
Only the one (TabsBar
) is exported.
In this 53-lines-of-code file :)
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.
No matter how many exports have the file. when we write a lot of components and a lot of interfaces it makes the file too long and less understandable and readable, so I think we have to split them into small codes
|
||
if (target.lt(0.01)) return toLocalFixed(bn.toPrecision(2)); | ||
|
||
if (target.lt(10_000)) return toLocalFixed(bn, 2); |
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 heard that style of numbers like that 10_000
could lead to bugs in some cases
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.
Yes, this format is forbidden in TempleWallet Mobile. Not here, though
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.
So there are reasons for that..
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.
Chrome done
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.
firefox done
No description provided.