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

Commit

Permalink
fix: wip fixing typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Oct 16, 2020
1 parent 858fc81 commit 2d1d825
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/BlockList/BlockList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function BlockList({ blocks }: any) {
<Typography>{t("Timestamp Date", { date: hexToDate(b.timestamp) })}&nbsp;<sub>({timeDifferenceFromParent > 0 ? `+${timeDifferenceFromParent}` : `-${timeDifferenceFromParent}`}s)</sub></Typography>
</TableCell>
<TableCell style={rightPaddingFix}>
<Tooltip title={t("Create Transactions", {count: txTypes.create})} placement="top">
<Tooltip title={t("Create Transactions", {count: txTypes.create}) as string} placement="top">
<Typography variant="caption" color="textSecondary">{txTypes.create === 0 ? "" : txTypes.create}</Typography>
</Tooltip>
<Typography>{txTypes.transact}</Typography>
Expand Down
2 changes: 1 addition & 1 deletion src/components/NetworkDropdown/NetworkDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const NetworkDropdown: React.FC<IProps> = (props) => {
return (
<>

<Tooltip title={t("Change Network")}>
<Tooltip title={t("Change Network") as string}>
<Button onClick={handleClick}>
{selectedNetwork && selectedNetwork.name}
</Button>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ interface IProps {

const Address: React.FC<IProps> = ({ match, history }) => {
const { address, block } = match.params;
const [erpc]: [EthereumJSONRPC] = useCoreGethStore();
const [erpc]: [EthereumJSONRPC, any] = useCoreGethStore();
const [blockNumber] = useBlockNumber(erpc);
const [transactionCount, setTransactionCount] = React.useState();
const [balance, setBalance] = React.useState();
const [code, setCode] = React.useState();
const blockNum = block !== undefined ? parseInt(block, 10) : blockNumber;
const blockNum = block === undefined ? 0 : parseInt(block, 10);
const [transactions, setTransactions] = React.useState();

const from = Math.max(blockNum - 99, 0);
Expand Down

0 comments on commit 2d1d825

Please sign in to comment.