-
Notifications
You must be signed in to change notification settings - Fork 102
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
[3] feat(tokens): tokens list, search and management ui #3191
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @types/[email protected], @uniswap/[email protected], [email protected], [email protected], [email protected] |
…ol/cowswap into refactor/token-search-ui
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.
Few more comments
apps/cowswap-frontend/src/modules/tokensList/containers/TokenSearchResults/index.tsx
Outdated
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/tokensList/containers/TokenSearchResults/index.tsx
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/tokensList/hooks/useAllTokensBalances.ts
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/tokensList/pure/SelectTokenModal/index.tsx
Outdated
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/tokensList/pure/SelectTokenModal/index.tsx
Outdated
Show resolved
Hide resolved
apps/cowswap-frontend/src/modules/tokensList/pure/TokensVirtualList/index.tsx
Show resolved
Hide resolved
const bBalance = balances[b.address] | ||
|
||
// Native always first | ||
if (getIsNativeToken(a) || getIsNativeToken(b)) return 1 |
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.
Isn't this saying, even if b
is native, a
should come first? (because it returns always 1
when either is native)
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.
It's actually unreal situation. We have only one native token in the list
const balance = balances ? balances[token.address] : null | ||
|
||
if (balance?.loading || balancesLoading) { | ||
return <styledEl.LoadingRows key={virtualRow.key}>{threeDivs()}</styledEl.LoadingRows> |
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.
more than threeDivs
(their implementation), is better to describe their function: loadingElement
…ol/cowswap into refactor/token-search-ui # Conflicts: # apps/cowswap-frontend/src/modules/tokensList/pure/ModalHeader/index.tsx # apps/cowswap-frontend/src/modules/tokensList/types.ts # yarn.lock
* refactor(tokens): integrate TokenLogo component (#3197) * refactor(tokens): wire up components to new hooks (#3198) * refactor(tokens): remove Uniswap currency entities usage (#3199) * refactor(tokens): use new tokens UI and logic by default (#3200) * fix(tokens): fix e2e tests for tokens updates (#3193) * refactor(tokens): remove legacy code (#3194) * fix(tokens): fix tokens list loading state (#3201)
Summary
This PR touches only files in
modules/tokensList
.The module is responsible for tokens UI. See cosmos fixtures here.
The first iteration of UI was add here. This PR complements and fixes it.
To Test
Please, test everything in #3201