From 753a9b8668a5eb86cf81982dc5719d905ec8c061 Mon Sep 17 00:00:00 2001 From: vpcodebase <84332922+vpcodebase@users.noreply.github.com> Date: Tue, 6 Jul 2021 20:31:22 +0300 Subject: [PATCH] circulatingSupply fix (#16) * 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 Co-authored-by: potvik <57394565+potvik@users.noreply.github.com> Co-authored-by: Hype --- src/hooks/ERC20_Pool.ts | 2 +- src/pages/AddressPage/AddressDetails.tsx | 6 +++--- src/pages/ERC20List/ERC20Table.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hooks/ERC20_Pool.ts b/src/hooks/ERC20_Pool.ts index d475a6b..6ff33b2 100644 --- a/src/hooks/ERC20_Pool.ts +++ b/src/hooks/ERC20_Pool.ts @@ -28,7 +28,7 @@ export interface Erc20 { name: string; address: string; totalSupply: string; - circulating_supply: string + circulatingSupply: string holders: string; decimals: number; symbol: string; diff --git a/src/pages/AddressPage/AddressDetails.tsx b/src/pages/AddressPage/AddressDetails.tsx index 09326d1..1c15165 100644 --- a/src/pages/AddressPage/AddressDetails.tsx +++ b/src/pages/AddressPage/AddressDetails.tsx @@ -123,7 +123,7 @@ const addressPropertyDisplayNames: Record< holders: () => "Holders", description: () => "Description", transactionHash: () => "Transaction Hash", - circulating_supply: () => "Circulating Supply", + circulatingSupply: () => "Circulating Supply", }; const addressPropertyDisplayValues: Record< @@ -202,7 +202,7 @@ const addressPropertyDisplayValues: Record< }, description: (value) => <>{value}, transactionHash: (value) =>
, - circulating_supply: (value, data) => ( + circulatingSupply: (value, data) => ( = { symbol: 21, decimals: 22, totalSupply: 23, - circulating_supply: 23, + circulatingSupply: 23, holders: 24, solidityVersion: 31, diff --git a/src/pages/ERC20List/ERC20Table.tsx b/src/pages/ERC20List/ERC20Table.tsx index 0a12e64..5040515 100644 --- a/src/pages/ERC20List/ERC20Table.tsx +++ b/src/pages/ERC20List/ERC20Table.tsx @@ -164,7 +164,7 @@ function getColumns(props: any) { return (