From fb36e6286aa4d751ce0d0899c5cb9c60f2041661 Mon Sep 17 00:00:00 2001 From: vpcodebase <84332922+vpcodebase@users.noreply.github.com> Date: Thu, 15 Jul 2021 19:48:24 +0300 Subject: [PATCH] Fix: routing on address page, logo in static folder (#38) * fix: search bar fix if number input, add badge (#2) * fix: search bar fix if number input, add badge for type in search bar, horfix for direct link in inventory page * fix: theme mode blink page * fix: write boolean in tx page * fix: styles for contract tab in address page * fix: remove btn * fix: env, results per page go to first page in grid. fix path for REACT_APP_EXPLORER_V1_API_URL * Update .env.example * fix: improve * fix: stable .env * fix: improve tx * fix: no update grid if tab not changed * fix: revert .env file * fix: add .env.development to gitignore * env var description * Update .env * fix: set to REACT_APP_PROD_ADDRESS socket * Update .env * fix: timeout for ERCpools * fix: timeout instead intervals * fix: setTimeout * fix: catch erc pools requests * fix: remove catch section * fix: hashRouter instead BrowserRouter * fix: merge * fix: routes fix * fix: improvements * fix: circulatingSupply name fix * fix: improve all issue tasks, fix tokens drop view * fix: both routers support * fix: transaction fee, gas price on tx page * Fix empty tx * fix: shard dropdown on main page, routing improvements * fix: add amount field in stacking-tx * fix: amount on address page * fix: staking tx table fields improvements latency for shars fix, amount staking-tx fix * fix: default decimals * fix: tokens dropdown close fix * fix: improve issue #29 * fix: records per page fix #30 * Update VerifyContract.tsx * fix: its often not clear when a new site was loaded #23 * Master (#37) * Staking tx amount fix (#26) * fix: search bar fix if number input, add badge (#2) * fix: search bar fix if number input, add badge for type in search bar, horfix for direct link in inventory page * fix: theme mode blink page * fix: write boolean in tx page * fix: styles for contract tab in address page * fix: remove btn * fix: env, results per page go to first page in grid. fix path for REACT_APP_EXPLORER_V1_API_URL * Update .env.example * fix: improve * fix: stable .env * fix: improve tx * fix: no update grid if tab not changed * fix: revert .env file * fix: add .env.development to gitignore * env var description * Update .env * fix: set to REACT_APP_PROD_ADDRESS socket * Update .env * fix: timeout for ERCpools * fix: timeout instead intervals * fix: setTimeout * fix: catch erc pools requests * fix: remove catch section * fix: hashRouter instead BrowserRouter * fix: merge * fix: routes fix * fix: improvements * fix: circulatingSupply name fix * fix: improve all issue tasks, fix tokens drop view * fix: both routers support * fix: transaction fee, gas price on tx page * Fix empty tx * fix: shard dropdown on main page, routing improvements * fix: add amount field in stacking-tx * fix: amount on address page * fix: staking tx table fields improvements latency for shars fix, amount staking-tx fix Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy * default decimals (#27) * fix: search bar fix if number input, add badge (#2) * fix: search bar fix if number input, add badge for type in search bar, horfix for direct link in inventory page * fix: theme mode blink page * fix: write boolean in tx page * fix: styles for contract tab in address page * fix: remove btn * fix: env, results per page go to first page in grid. fix path for REACT_APP_EXPLORER_V1_API_URL * Update .env.example * fix: improve * fix: stable .env * fix: improve tx * fix: no update grid if tab not changed * fix: revert .env file * fix: add .env.development to gitignore * env var description * Update .env * fix: set to REACT_APP_PROD_ADDRESS socket * Update .env * fix: timeout for ERCpools * fix: timeout instead intervals * fix: setTimeout * fix: catch erc pools requests * fix: remove catch section * fix: hashRouter instead BrowserRouter * fix: merge * fix: routes fix * fix: improvements * fix: circulatingSupply name fix * fix: improve all issue tasks, fix tokens drop view * fix: both routers support * fix: transaction fee, gas price on tx page * Fix empty tx * fix: shard dropdown on main page, routing improvements * fix: add amount field in stacking-tx * fix: amount on address page * fix: staking tx table fields improvements latency for shars fix, amount staking-tx fix * fix: default decimals Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy * Fix GitHub issues (#33) * fix: search bar fix if number input, add badge (#2) * fix: search bar fix if number input, add badge for type in search bar, horfix for direct link in inventory page * fix: theme mode blink page * fix: write boolean in tx page * fix: styles for contract tab in address page * fix: remove btn * fix: env, results per page go to first page in grid. fix path for REACT_APP_EXPLORER_V1_API_URL * Update .env.example * fix: improve * fix: stable .env * fix: improve tx * fix: no update grid if tab not changed * fix: revert .env file * fix: add .env.development to gitignore * env var description * Update .env * fix: set to REACT_APP_PROD_ADDRESS socket * Update .env * fix: timeout for ERCpools * fix: timeout instead intervals * fix: setTimeout * fix: catch erc pools requests * fix: remove catch section * fix: hashRouter instead BrowserRouter * fix: merge * fix: routes fix * fix: improvements * fix: circulatingSupply name fix * fix: improve all issue tasks, fix tokens drop view * fix: both routers support * fix: transaction fee, gas price on tx page * Fix empty tx * fix: shard dropdown on main page, routing improvements * fix: add amount field in stacking-tx * fix: amount on address page * fix: staking tx table fields improvements latency for shars fix, amount staking-tx fix * fix: default decimals * fix: tokens dropdown close fix * fix: improve issue #29 * fix: records per page fix #30 Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy * Update VerifyContract.tsx * Fix often not clear when a new site was loaded #23 (#35) * fix: search bar fix if number input, add badge (#2) * fix: search bar fix if number input, add badge for type in search bar, horfix for direct link in inventory page * fix: theme mode blink page * fix: write boolean in tx page * fix: styles for contract tab in address page * fix: remove btn * fix: env, results per page go to first page in grid. fix path for REACT_APP_EXPLORER_V1_API_URL * Update .env.example * fix: improve * fix: stable .env * fix: improve tx * fix: no update grid if tab not changed * fix: revert .env file * fix: add .env.development to gitignore * env var description * Update .env * fix: set to REACT_APP_PROD_ADDRESS socket * Update .env * fix: timeout for ERCpools * fix: timeout instead intervals * fix: setTimeout * fix: catch erc pools requests * fix: remove catch section * fix: hashRouter instead BrowserRouter * fix: merge * fix: routes fix * fix: improvements * fix: circulatingSupply name fix * fix: improve all issue tasks, fix tokens drop view * fix: both routers support * fix: transaction fee, gas price on tx page * Fix empty tx * fix: shard dropdown on main page, routing improvements * fix: add amount field in stacking-tx * fix: amount on address page * fix: staking tx table fields improvements latency for shars fix, amount staking-tx fix * fix: default decimals * fix: tokens dropdown close fix * fix: improve issue #29 * fix: records per page fix #30 * Update VerifyContract.tsx * fix: its often not clear when a new site was loaded #23 Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy * Update .env Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy * fix: routing fix * fix: add twiiter logo link * fix: routing on address page fix Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype Co-authored-by: yuriy --- public/static/twitter-harmony.png | Bin 0 -> 15308 bytes src/Routes.tsx | 2 +- src/pages/AddressPage/index.tsx | 42 ++++++++++++++++++++++++++++-- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 public/static/twitter-harmony.png diff --git a/public/static/twitter-harmony.png b/public/static/twitter-harmony.png new file mode 100644 index 0000000000000000000000000000000000000000..a34333d1b89870870e97fef903b037934c7176e7 GIT binary patch literal 15308 zcmeIZcT|&G(>IKI)JOyg0#O0MAV>|p3n(NYAiYBZCqU>BdN0RgfCvI2O}c<|1f++m zK|p%%O+bqD-ofwU+~+>;v%d9~`=9rpXT7YIa3$H-?AbH3XZHMNu2<@+3KZn`$jQja zC={O|G|9*=>ywdPk^o%>zCrfXC;uku{N z3}+9=nBz>ba8G+jU^E%oV;N6JjF~OgmDv<)Y3(2d+o)-PFO|81r94Ty3Rb zPcJ59)>lzymcuz?nT6pZJZAht!px%LaDEX%A#rhTW&u8aFFJ_!K< z=D+`7z--Ru7805W`M>7^K1so>TwNU{czHcMJm4OJaGbLxFTc3BI4_?7uYdp#FoMU$ z%fS`n$>ZR{@^1>d9h>)`UYm;izCdSV=T z`QdyQOZxXf6_x+}P<#7-M!UEo-GN#D=J$U}*hSmR5zDKIb-}qgn_-deSO-^@e@|v^ z_RqbJZq9apt<>C%7i)*L2Zp%-jPd_7m7^8T73X4w`(Lc%pP&C(jiZE|GZy2DbJoV; z?EbAN^?y@gmXo_sj5ss93dYRZ;es^B1zUgLg+*Xou~M*$5j=b%fZntP1SI$cCHRGS z_(Uc6`2ICi1uzD4j4S3p8;mozw($B-hN`GYC_1>fVjRq{iU=tfz!cot+FSx7Y%au) z5#Z+$H{-|f2$@-!^I-S|_;>__FhXVmf@Wqy7NURg1>BFonYmra@Z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XZ3z*R#RfFq3SIR}dG5BTbezv+hHjT znatFKc6}52omVSr@+hp`O9~#{oxHXBWk36Qf30kL9`*P&<)aenm9on_MFQLF&$_Av zS?Az-iU&@ZCnzyebbBYD#oGq5cQiEnOQ_OxEwY3r((gd;YfnWCBp0_z7S*xehx$u@ z4os2mJDF>Howsuy5`;r_QM?Az9wZ+*Jb_PdJi<;zaw|160&Nc=;DCg9-TtBG3$ky1 zXj|(Z19(2=SDdRdQ_9JwDv33xG!wYVE3on@fVZdc+FPyg6?f4q<)NKs=23e9&Q!a9 zADRaoP4?*=M97v>fs&~v8!7bDFjbnv{R8)zOK5m41nO_xr{LYvB#@smxhYX3s5iO9 zGDroTf=7TiZaU7?{rq`DMP?uyVY>;C=(qB2HR8bjqIKG-1{&UndfZJ*IdoeyydEXBEQMJC+pHK(_qm_`B}(f&>|jF;d^Ms^O%OW#GV{Bhm^bgIzuh?%Z(n?=b_y25Cp z%Uo~P8D`tAzcxi3Mk!ak%L8522@mhmBj*y@kMwQ{tUPHBY-sC{(rm04BjY2}-%Q^o zn@RDzetkWzI@4s3Evsa&x4ryJ6M$W^2Xs$d&#)cs3}4)_ue>Jgu@L#X)}t+-VKtY6 z>#zhAD>QXiE3+x^m(!SpG*Kk4BqHESX(Mq^Q|e)30V}+g zm(|kyg#qFP;~grpYxnYp>Srv!06i*{OMu1#3Q>lB<26k@JA(I8stiy1!8+*^ylqWw z(=9sPs`=A)Hr1&9 - + diff --git a/src/pages/AddressPage/index.tsx b/src/pages/AddressPage/index.tsx index 9afdfde..4013788 100644 --- a/src/pages/AddressPage/index.tsx +++ b/src/pages/AddressPage/index.tsx @@ -31,11 +31,49 @@ import { useCurrency } from "src/hooks/ONE-ETH-SwitcherHook"; export function AddressPage() { const history = useHistory(); const tabParamName = "activeTab="; + const oldTabParamName = "txType="; let activeTab = 0; try { - activeTab = +history.location.search.slice( + const newValue = +history.location.search.slice( history.location.search.indexOf("activeTab=") + tabParamName.length ); + + const oldTxType = history.location.search.slice( + history.location.search.indexOf(oldTabParamName) + oldTabParamName.length + ); + + activeTab = isNaN(newValue) ? 0 : newValue; + + switch (oldTxType) { + case "regular": { + activeTab = 0; + break; + } + + case "staking": { + activeTab = 1; + break; + } + + case "hrc20": { + activeTab = 3; + break; + } + + case "hrc721": { + activeTab = 4; + + break; + } + + case "hrc721Assets": { + activeTab = 5; + break; + } + + default: { + } + } } catch { activeTab = 0; } @@ -54,7 +92,7 @@ export function AddressPage() { //TODO remove hardcode // @ts-ignore let { id } = useParams(); - id = `${id}`.toLowerCase() + id = `${id}`.toLowerCase(); id = id.slice(0, 3) === "one" ? getAddress(id).basicHex : id; const erc20Token = erc20Map[id] || null;