Skip to content

Commit

Permalink
fix: 🐛 fix token info sections (#3465)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo authored Jul 8, 2024
1 parent f885066 commit 1789a9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 169 deletions.
2 changes: 1 addition & 1 deletion packages/web/components/alloyed-assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const AlloyedAssetsSection = (props: AlloyedAssetsSectionProps) => {
}

return (
<section>
<section className={className}>
<h3 className="mb-8 text-h6 font-semibold">
{t("tokenInfos.underlyingAssets.title")}
</h3>
Expand Down
13 changes: 3 additions & 10 deletions packages/web/components/pages/asset-info-page/token-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,9 @@ export const TokenStats = observer((props: TokenStatsProps) => {
} = useAssetInfo();

const { data: tokenMarket, isLoading: isLoadingTokenMarket } =
api.edge.assets.getMarketAsset.useQuery(
{
findMinDenomOrSymbol: tokenDenom,
},
{
refetchOnMount: false,
refetchOnWindowFocus: false,
staleTime: 1_000 * 60 * 15,
}
);
api.edge.assets.getMarketAsset.useQuery({
findMinDenomOrSymbol: tokenDenom,
});

const stats: TokenStatProps[] = useMemo(() => {
const data = [
Expand Down
2 changes: 1 addition & 1 deletion packages/web/pages/assets/[denom].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const AssetInfoView = observer(({ tweets }: AssetInfoPageProps) => {
</div>
{token.isAlloyed && token.contract ? (
<AlloyedAssetsSection
className="hidden xl:flex"
className="hidden xl:block"
title={title ?? token.coinDenom}
denom={token.coinDenom}
contractAddress={token.contract}
Expand Down
161 changes: 4 additions & 157 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5617,29 +5617,7 @@
buffer "^6.0.3"
delay "^4.4.0"

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/common/-/common-0.12.12.tgz#55030d985b729eac582c0d7203190e25ea2cb3ec"
integrity sha512-AxpwmXdqs083lMvA8j0/V30oTGyobsefNaCou+lP4rCyDdYuXSEux+x2+1AGL9xB3yZfN+4jvEEKJdMwHYEHcQ==
dependencies:
"@keplr-wallet/crypto" "0.12.12"
"@keplr-wallet/types" "0.12.12"
buffer "^6.0.3"
delay "^4.4.0"
mobx "^6.1.7"

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/common/-/common-0.12.28.tgz#1d5d985070aced31a34a6426c9ac4b775081acca"
integrity sha512-ESQorPZw8PRiUXhsrxED+E1FEWkAdc6Kwi3Az7ce204gMBQDI2j0XJtTd4uCUp+C24Em9fk0samdHzdoB4caIg==
dependencies:
"@keplr-wallet/crypto" "0.12.28"
"@keplr-wallet/types" "0.12.28"
buffer "^6.0.3"
delay "^4.4.0"
mobx "^6.1.7"

"@keplr-wallet/[email protected]":
"@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/cosmos/-/cosmos-0.10.24-ibc.go.v7.hot.fix.tgz"
integrity sha512-/A/wHyYo5gQIW5YkAQYZadEv/12EcAuDclO0KboIb9ti4XFJW6S4VY8LnA16R7DZyBx1cnQknyDm101fUrJfJQ==
Expand All @@ -5656,40 +5634,6 @@
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/cosmos/-/cosmos-0.12.12.tgz#72c0505d2327bbf2f5cb51502acaf399b88b4ae3"
integrity sha512-9TLsefUIAuDqqf1WHBt9Bk29rPlkezmLM8P1eEsXGUaHBfuqUrO+RwL3eLA3HGcgNvdy9s8e0p/4CMInH/LLLQ==
dependencies:
"@ethersproject/address" "^5.6.0"
"@keplr-wallet/common" "0.12.12"
"@keplr-wallet/crypto" "0.12.12"
"@keplr-wallet/proto-types" "0.12.12"
"@keplr-wallet/simple-fetch" "0.12.12"
"@keplr-wallet/types" "0.12.12"
"@keplr-wallet/unit" "0.12.12"
bech32 "^1.1.4"
buffer "^6.0.3"
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/cosmos/-/cosmos-0.12.28.tgz#d56e73468256e7276a66bb41f145449dbf11efa1"
integrity sha512-IuqmSBgKgIeWBA0XGQKKs28IXFeFMCrfadCbtiZccNc7qnNr5Y/Cyyk01BPC8Dd1ZyEyAByoICgrxvtGN0GGvA==
dependencies:
"@ethersproject/address" "^5.6.0"
"@keplr-wallet/common" "0.12.28"
"@keplr-wallet/crypto" "0.12.28"
"@keplr-wallet/proto-types" "0.12.28"
"@keplr-wallet/simple-fetch" "0.12.28"
"@keplr-wallet/types" "0.12.28"
"@keplr-wallet/unit" "0.12.28"
bech32 "^1.1.4"
buffer "^6.0.3"
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/crypto/-/crypto-0.10.24-ibc.go.v7.hot.fix.tgz"
Expand Down Expand Up @@ -5762,30 +5706,14 @@
resolved "https://registry.npmjs.org/@keplr-wallet/popup/-/popup-0.10.24-ibc.go.v7.hot.fix.tgz"
integrity sha512-Q/teyV6vdmpH3SySGd1xrNc/mVGK/tCP5vFEG2I3Y4FDCSV1yD7vcVgUy+tN19Z8EM3goR57V2QlarSOidtdjQ==

"@keplr-wallet/[email protected]":
"@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/proto-types/-/proto-types-0.10.24-ibc.go.v7.hot.fix.tgz"
integrity sha512-fLUJEtDadYJIMBzhMSZpEDTvXqk8wW68TwnUCRAcAooEQEtXPwY5gfo3hcekQEiCYtIu8XqzJ9fg01rp2Z4d3w==
dependencies:
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/proto-types/-/proto-types-0.12.12.tgz#24e0530af7604a90f33a397a82fe500865c76154"
integrity sha512-iAqqNlJpxu/8j+SwOXEH2ymM4W0anfxn+eNeWuqz2c/0JxGTWeLURioxQmCtewtllfHdDHHcoQ7/S+NmXiaEgQ==
dependencies:
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/proto-types/-/proto-types-0.12.28.tgz#2fb2c37749ce7db974f01d07387e966c9b99027d"
integrity sha512-ukti/eCTltPUP64jxtk5TjtwJogyfKPqlBIT3KGUCGzBLIPeYMsffL5w5aoHsMjINzOITjYqzXyEF8LTIK/fmw==
dependencies:
long "^4.0.0"
protobufjs "^6.11.2"

"@keplr-wallet/provider-extension@^0.12.95":
version "0.12.107"
resolved "https://registry.yarnpkg.com/@keplr-wallet/provider-extension/-/provider-extension-0.12.107.tgz#98a0fb42cb0c54d4e681e60e6b1145429a6e3e23"
Expand Down Expand Up @@ -5861,32 +5789,12 @@
deepmerge "^4.2.2"
long "^4.0.0"

"@keplr-wallet/[email protected]":
"@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/router/-/router-0.10.24-ibc.go.v7.hot.fix.tgz"
integrity sha512-bt9weexlbhlh8KsOvbDrvHJ8jtUXrXgB2LX+hEAwjclHQt7PMUhx9a5z0Obd19/ive5G/1M7/ccdPIWxRBpKQw==

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/router/-/router-0.12.12.tgz#92a2c006aec6945ed313575af6b0801f8e84e315"
integrity sha512-Aa1TiVRIEPaqs1t27nCNs5Kz6Ty4CLarVdfqcRWlFQL6zFq33GT46s6K9U4Lz2swVCwdmerSXaq308K/GJHTlw==

"@keplr-wallet/[email protected]":
version "0.12.96"
resolved "https://registry.yarnpkg.com/@keplr-wallet/router/-/router-0.12.96.tgz#6a20ed2c90ba3ed4f3fc43ed7513f72d7055482d"
integrity sha512-O8izj032ZKQIoTus96BFqem+w6NpYHU3j6NEnSaQBh6Zncj9fgjoOVs0CKK+jsuLYUsOHx2t86BxMSKESsR0Ug==

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/simple-fetch/-/simple-fetch-0.12.12.tgz#aacc5c3f22b7ab2804b39e864725294a32f858fd"
integrity sha512-lCOsaI8upMpbusfwJqEK8VIEX77+QE8+8MJVRqoCYwjOTqKGdUH7D1ieZWh+pzvzOnVgedM3lxqdmCvdgU91qw==

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/simple-fetch/-/simple-fetch-0.12.28.tgz#44225df5b329c823076280df1ec9930a21b1373e"
integrity sha512-T2CiKS2B5n0ZA7CWw0CA6qIAH0XYI1siE50MP+i+V0ZniCGBeL+BMcDw64vFJUcEH+1L5X4sDAzV37fQxGwllA==

"@keplr-wallet/[email protected]":
"@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]", "@keplr-wallet/[email protected]", "@keplr-wallet/types@^0.11.41", "@keplr-wallet/types@^0.12.95":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/types/-/types-0.10.24-ibc.go.v7.hot.fix.tgz"
integrity sha512-3KUjDMUCscYkvKnC+JsJh9+X0NHlsvBgAghP/uy2p5OGtiULqPBAjWiO+hnBbhis3ZEkzGcCROnnBOoccKd3CQ==
Expand All @@ -5897,49 +5805,6 @@
long "^4.0.0"
secretjs "^0.17.0"

"@keplr-wallet/[email protected]":
version "0.12.107"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.107.tgz#8d6726d86e17a79131b4b6f4f114052d6384aa58"
integrity sha512-jBpjJO+nNL8cgsJLjZYoq84n+7nXHDdztTgRMVnnomFb+Vy0FVIEI8VUl89ImmHDUImDd0562ywsvA496/0yCA==
dependencies:
long "^4.0.0"

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.12.tgz#f4bd9e710d5e53504f6b53330abb45bedd9c20ae"
integrity sha512-fo6b8j9EXnJukGvZorifJWEm1BPIrvaTLuu5PqaU5k1ANDasm/FL1NaUuaTBVvhRjINtvVXqYpW/rVUinA9MBA==
dependencies:
long "^4.0.0"

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.28.tgz#eac3c2c9d4560856c5c403a87e67925992a04fbf"
integrity sha512-EcM9d46hYDm3AO4lf4GUbTSLRySONtTmhKb7p88q56OQOgJN3MMjRacEo2p9jX9gpPe7gRIjMUalhAfUiFpZoQ==
dependencies:
long "^4.0.0"

"@keplr-wallet/[email protected]":
version "0.12.96"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.96.tgz#a7735051b1f7cbcdf9b8c29010b1c3c45d195c19"
integrity sha512-tr4tPjMrJCsfRXXhhmqnpb9DqH9auJp3uuj8SvDB3pQTTaYJNxkdonLv1tYmXZZ6J9oWtk9WVEDTVgBQN/wisw==
dependencies:
long "^4.0.0"

"@keplr-wallet/types@^0.11.41":
version "0.11.64"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.11.64.tgz#5a308c8c019b4e18f894e0f35f0904b60134d605"
integrity sha512-GgzeLDHHfZFyne3O7UIfFHj/uYqVbxAZI31RbBwt460OBbvwQzjrlZwvJW3vieWRAgxKSITjzEDBl2WneFTQdQ==
dependencies:
axios "^0.27.2"
long "^4.0.0"

"@keplr-wallet/types@^0.12.95":
version "0.12.108"
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.108.tgz#cd7cef0e48fce556bbd86794a5d9ea45ba42f430"
integrity sha512-ILoRa46WKGUubh8sf4+4X2Qi7vQxIPjC5uCPhnLajRKNYUJe/Y7e+uWUt7pYEqrGPchn0XWs6xNYtR5gwKXJdA==
dependencies:
long "^4.0.0"

"@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/unit/-/unit-0.10.24-ibc.go.v7.hot.fix.tgz"
Expand All @@ -5949,24 +5814,6 @@
big-integer "^1.6.48"
utility-types "^3.10.0"

"@keplr-wallet/[email protected]":
version "0.12.12"
resolved "https://registry.yarnpkg.com/@keplr-wallet/unit/-/unit-0.12.12.tgz#2d7f2e38df4e09c8123dcc0784ffc4b5f4166217"
integrity sha512-fayJcfXWKUnbDZiRJHyuA9GMVS9DymjRlCzlpAJ0+xV0c4Kun/f+9FajL9OQAdPPhnJ7A3KevMI4VHZsd9Yw+A==
dependencies:
"@keplr-wallet/types" "0.12.12"
big-integer "^1.6.48"
utility-types "^3.10.0"

"@keplr-wallet/[email protected]":
version "0.12.28"
resolved "https://registry.yarnpkg.com/@keplr-wallet/unit/-/unit-0.12.28.tgz#907c7fa0b49a729cda207fca14fc0a38871cc6c4"
integrity sha512-kpXigHDBJGOmhtPkv9hqsQid9zkFo7OQPeKgO2n8GUlOINIXW6kWG5LXYTi/Yg9Uiw1CQF69gFMuZCJ8IzVHlA==
dependencies:
"@keplr-wallet/types" "0.12.28"
big-integer "^1.6.48"
utility-types "^3.10.0"

"@keplr-wallet/[email protected]":
version "0.10.24-ibc.go.v7.hot.fix"
resolved "https://registry.npmjs.org/@keplr-wallet/wc-client/-/wc-client-0.10.24-ibc.go.v7.hot.fix.tgz"
Expand Down

0 comments on commit 1789a9a

Please sign in to comment.