grid update with rowDetails fix (#10)

* 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

Co-authored-by: potvik <57394565+potvik@users.noreply.github.com>
pull/19/head
vpcodebase 3 years ago committed by GitHub
parent 3760d40bb5
commit 48840928ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      .env
  2. 13
      src/pages/TransactionPage/index.tsx

14
.env

@ -1,9 +1,9 @@
REACT_APP_RPC_URL_SHARD0=http://internal.s0.t.hmny.io
REACT_APP_RPC_URL_SHARD1=https://api.s1.t.hmny.io
REACT_APP_RPC_URL_SHARD2=https://api.s2.t.hmny.io
REACT_APP_RPC_URL_SHARD3=https://api.s3.t.hmny.io
REACT_APP_RPC_URL_SHARD0=https://a.api.s0.t.hmny.io/
REACT_APP_RPC_URL_SHARD1=https://api.s1.t.hmny.io/
REACT_APP_RPC_URL_SHARD2=https://api.s2.t.hmny.io/
REACT_APP_RPC_URL_SHARD3=https://api.s3.t.hmny.io/
REACT_APP_AVAILABLE_SHARDS=0,1,2,3
REACT_APP_EXPLORER_V1_API_URL=https://explorer.pops.one:8888
REACT_APP_EXPLORER_V1_API_URL=https://explorer.pops.one:8888/
REACT_APP_INDEXER_IPFS_GATEWAY=https://ipfs.io/ipfs/
REACT_APP_PROD_ADDRESS=https://explorer-v2-api.hmny.io
#REACT_APP_DEV_ADDRESS=https://ws.explorer-v2.hmny.io
REACT_APP_PROD_ADDRESS=https://explorer-v2-api.hmny.io/
REACT_APP_DEV_ADDRESS=https://ws.explorer-v2.hmny.io/

@ -38,7 +38,7 @@ export const TransactionPage = () => {
} catch {
activeTab = 0;
}
// hash or number
// @ts-ignore
const { id } = useParams();
@ -168,11 +168,12 @@ export const TransactionPage = () => {
justify="start"
activeIndex={activeIndex}
onActive={(newActive) => {
history.replace(
`${history.location.pathname}?activeTab=${newActive}`
);
console.log(history);
setActiveIndex(newActive);
if (newActive !== activeIndex) {
history.replace(
`${history.location.pathname}?activeTab=${newActive}`
);
setActiveIndex(newActive);
}
}}
>
<Tab title={<Text size="small">Transaction Details</Text>}>

Loading…
Cancel
Save