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 <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>

* 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 <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>

* 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 <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>

* 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 <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>

* Update .env

Co-authored-by: potvik <57394565+potvik@users.noreply.github.com>
Co-authored-by: Hype <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>

* 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 <hypnagonia@gmail.com>
Co-authored-by: yuriy <yuriy.menkov@latoken.com>
pull/39/head
vpcodebase 3 years ago committed by GitHub
parent 7131e867f3
commit fb36e6286a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      public/static/twitter-harmony.png
  2. 2
      src/Routes.tsx
  3. 42
      src/pages/AddressPage/index.tsx

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -55,7 +55,7 @@ export function Routes() {
<StakingTransactionPage />
</Route>
<Route path="/address/:id">
<Route exact path="/address/:id">
<AddressPage />
</Route>

@ -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;

Loading…
Cancel
Save