Skip to content

Commit 19e9c21

Browse files
committed
fix build issues
1 parent ecb0128 commit 19e9c21

9 files changed

Lines changed: 23 additions & 12 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
"@types/numeral": "^0.0.26",
170170
"@types/query-string": "^5.1.0",
171171
"@types/rc-slider": "^8.6.0",
172+
"@types/ethereumjs-util": "^5.2.0",
172173
"@types/react": "^16.9.17",
173174
"@types/react-copy-to-clipboard": "^4.2.0",
174175
"@types/react-dom": "^16.9.4",
@@ -240,7 +241,7 @@
240241
},
241242
"husky": {
242243
"hooks": {
243-
"pre-push": "yarn pre_push"
244+
"pre-push": "pnpm pre_push"
244245
}
245246
},
246247
"volta": {

pnpm-lock.yaml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/components/blockIconLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class BaseComponent extends React.PureComponent<BaseComponentProps> {
5555
}
5656
}
5757

58-
export const BlockIconLink = withRouter<BaseComponentProps>(BaseComponent);
58+
export const BlockIconLink = withRouter<BaseComponentProps, any>(BaseComponent);
5959

6060
const Wrap = styled.div`
6161
width: calc(50% - 15px);

ts/components/ui/container.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TextAlignProperty } from 'csstype';
1+
import { Property } from 'csstype';
22
import { darken } from 'polished';
33
import * as React from 'react';
44

@@ -35,7 +35,7 @@ export interface ContainerProps {
3535
height?: StringOrNum;
3636
minWidth?: StringOrNum;
3737
minHeight?: StringOrNum;
38-
textAlign?: TextAlignProperty;
38+
textAlign?: Property.TextAlign;
3939
isHidden?: boolean;
4040
className?: string;
4141
position?: 'absolute' | 'fixed' | 'relative' | 'unset';

ts/connectors/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const newWalletConnect = () =>
2626
rpc: { 1: RPC_URLS[1] },
2727
bridge: 'https://bridge.walletconnect.org',
2828
qrcode: true,
29-
pollingInterval: POLLING_INTERVAL,
3029
});
3130

3231
const newWalletLink = () =>

ts/pages/governance/treasury.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const Treasury: React.FC<{}> = () => {
7777
const [isVoteModalOpen, setIsVoteModalOpen] = React.useState<boolean>(false);
7878
const [quorumThreshold, setQuorumThreshold] = React.useState<BigNumber>();
7979
const [voterBreakdownData, setVoterBreakdownData] = React.useState<VoterBreakdownData[]>();
80-
const { id: proposalId } = useParams();
80+
const { id: proposalId } = useParams<{ id: string }>();
8181
const providerState = useSelector((state: State) => state.providerState);
8282

8383
const { data } = useQuery('proposal', async () => {

ts/pages/governance/voter_leaderboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface VoterBreakdownData {
5252

5353
export const VoterLeaderboard: React.FC<{}> = () => {
5454
const [voterBreakdownData, setVoterBreakdownData] = React.useState<VoterBreakdownData[]>();
55-
const { id: proposalId } = useParams();
55+
const { id: proposalId } = useParams<{ id: string }>();
5656
const providerState = useSelector((state: State) => state.providerState);
5757

5858
useQuery('proposal', async () => {

ts/pages/staking/staking_pool.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const StakingCalculatorLink = styled.a`
8080
`;
8181

8282
export const StakingPool: React.FC<StakingPoolProps & RouteChildrenProps> = (props) => {
83-
const { poolId } = useParams();
83+
const { poolId } = useParams<{ poolId: string }>();
8484

8585
const networkId = useSelector((state: State) => state.networkId);
8686
const apiClient = useAPIClient(networkId);

ts/style/dimensions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ function getDimensionObject(node: HTMLElement): DimensionObject {
2323
return {
2424
width: rect.width,
2525
height: rect.height,
26-
top: 'x' in rect ? rect.x : rect.top,
27-
left: 'y' in rect ? rect.y : rect.left,
28-
x: 'x' in rect ? rect.x : rect.left,
29-
y: 'y' in rect ? rect.y : rect.top,
26+
top: rect.top,
27+
left: rect.left,
28+
x: rect.left,
29+
y: rect.top,
3030
right: rect.right,
3131
bottom: rect.bottom,
3232
};

0 commit comments

Comments
 (0)