Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #266 from etclabscore/fix/remove-pending-txes
Browse files Browse the repository at this point in the history
fix: remove pending transactions from dashboard
  • Loading branch information
shanejonas authored Feb 26, 2020
2 parents d1ecea5 + 9b37dfd commit f84dcff
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 54 deletions.
38 changes: 0 additions & 38 deletions src/components/NodeList/NodeList.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/NodeList/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/containers/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,8 @@ export default (props: any) => {
const [syncing, setSyncing] = useState();
const [peerCount, setPeerCount] = useState();

const [pendingTransctionsLength, setPendingTransactionsLength] = useState(0);
const { t } = useTranslation();

React.useEffect(() => {
if (!erpc) { return; }
erpc.eth_pendingTransactions().then((p) => setPendingTransactionsLength(p.length));
}, [erpc]);

React.useEffect(() => {
if (!erpc) { return; }
erpc.eth_chainId().then(setChainId);
Expand Down Expand Up @@ -126,11 +120,6 @@ export default (props: any) => {
}
</ChartCard>
</Grid>
<Grid key="pending-tx" item>
<ChartCard title={t("Pending Transactions")}>
{<Typography variant="h4">{pendingTransctionsLength}</Typography>}
</ChartCard>
</Grid>
<Grid key="peers" item>
<ChartCard title={t("Peers")}>
<Typography variant="h4">{hexToNumber(peerCount)}</Typography>
Expand Down
1 change: 0 additions & 1 deletion src/translations/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default {
"Syncing": "同步中",
"Gas Price": "Gas 费用",
"Network Hash Rate": "算力",
"Pending Transactions": "等待中的交易",
"Peers": "端点",
"Hash Rate": "Hash Rate",
"Transaction Count": "Transaction Count",
Expand Down
1 change: 0 additions & 1 deletion src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default {
"Syncing": "Syncing",
"Gas Price": "Gas Price",
"Network Hash Rate": "Network Hash Rate",
"Pending Transactions": "PendingTransactions",
"Peers": "Peers",
"Hash Rate": "Hash Rate",
"Transaction Count": "Transaction Count",
Expand Down
1 change: 0 additions & 1 deletion src/translations/kr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default {
"Syncing": "동기화",
"Gas Price": "Gas 비용",
"Network Hash Rate": "해시파워",
"Pending Transactions": "대기인 거래",
"Peers": "거점",
"Hash Rate": "Hash Rate",
"Transaction Count": "Transaction Count",
Expand Down

0 comments on commit f84dcff

Please sign in to comment.