From 0dbb684410f47d04a8fc3b9a73e3c58008b63747 Mon Sep 17 00:00:00 2001 From: "Matt, Park" <45252226+mattverse@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:46:28 -0400 Subject: [PATCH] fix: fix broken asset list link (#270) * feat: try replacing asset list link * feat: some more change --- docs/osmosis-core/AssetData.js | 136 ++++++++++++++++----------------- 1 file changed, 68 insertions(+), 68 deletions(-) diff --git a/docs/osmosis-core/AssetData.js b/docs/osmosis-core/AssetData.js index d0b4a28fe..d16abf5c4 100644 --- a/docs/osmosis-core/AssetData.js +++ b/docs/osmosis-core/AssetData.js @@ -2,15 +2,15 @@ import React, { useState, useEffect } from 'react'; const AssetData = () => { const [assets, setAssets] = useState(null); - const [selectedUrl, setSelectedUrl] = useState('https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/osmosis-1.assetlist.json'); + const [selectedUrl, setSelectedUrl] = useState('https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/chain_registry/assetlist.json'); const assetUrls = { - mainnet: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/osmosis-1.assetlist.json', + mainnet: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmosis-1/generated/chain_registry/assetlist.json', osmo_test_4: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmo-test-5/osmo-test-5.assetlist.json', osmo_test_5: 'https://raw.githubusercontent.com/osmosis-labs/assetlists/main/osmo-test-5/osmo-test-5.assetlist.json', }; - + const chainButtonStyle = { backgroundColor: '#322dc2', border: 'none', @@ -22,13 +22,13 @@ const AssetData = () => { fontSize: '16px', margin: '4px 2px', borderRadius: '8px', - transition: 'background-color 0.2s ease-in-out', + transition: 'background-color 0.2s ease-in-out', ':hover': { backgroundColor: '#5f4bea', } }; - - + + useEffect(() => { const fetchAssets = () => { @@ -48,74 +48,74 @@ const AssetData = () => { <>
- Name
- |
-
- Information
- |
-
---|---|
{asset.name} | -
-
- Symbol: {asset.symbol}
-
- {asset.traces?.map((trace, index) => (
- IBC Denom: {asset.base} -
- {trace.provider && Provider: {trace.provider}}
-
-
- ))}
-
-
-
-
-
-
|
-
Name
+ Information
+