-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add tokens section #1467
base: main
Are you sure you want to change the base?
Add tokens section #1467
Conversation
6d7c77a
to
f09dcab
Compare
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 add the screenshots
import { useColor } from "../../styles/useColor"; | ||
|
||
// Known verified tokens on mainnet | ||
const verifiedTokens = [ |
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 think it's worth moving to umami/tezos
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.
moved
@@ -11,29 +12,24 @@ body { | |||
} | |||
|
|||
@media (max-width: 768px) { | |||
padding: 0; | |||
padding: 0 !important; |
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.
what was wrong with the previous approach?
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.
Modal overlay adds additional padding to the body and it breaks the layout
@@ -200,6 +262,7 @@ const theme = extendTheme({ | |||
}, | |||
}, | |||
":root": { | |||
"--chakra-colors-black": mode(dark.grey.white, light.grey.white)(props), |
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.
?? black is white?
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.
black is white in the light mode and vice versa 🤪
import repeat from "lodash/repeat"; | ||
|
||
// TODO: move this to utils | ||
const getSmallestUnit = (decimals: number): string => { |
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.
looks like it can be moved to umami/core
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.
moved
tokenDecimals, | ||
tokenSymbolSafe, | ||
} from "@umami/core"; | ||
import repeat from "lodash/repeat"; |
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.
IIRC we prohibit default imports somewhere 🤔
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'm not sure why do we prohibited default imports from 3rd party libs?
@@ -26,14 +28,9 @@ export const AccountSelector = () => { | |||
</Text> | |||
<Flex alignItems="center" gap="4px"> | |||
<Text color={color("700")} size="sm"> | |||
{accounts[0].label} | |||
{formatPkh(accounts[0].address.pkh)} |
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 so? IIRC we should show both the label and the address
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.
144a08d
to
7886fc7
Compare
Proposed changes
Task link
Types of changes
Steps to reproduce
Screenshots
Add the screenshots of how the app used to look like and how it looks now
Checklist