diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-12-21 07:27:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 07:27:27 +0800 |
commit | bed5b275e4da4dd9a822b068849ba0ef28829a70 (patch) | |
tree | a0e7312aa413e0865f6916c38f3ddde3ae4a7ccd /packages/website/ts/@next/components/blockIconLink.tsx | |
parent | 0a84ee748823e5099b0767eedc5de95c71cb8f4e (diff) | |
parent | 5d3d596909e0e4d12d3372e58ae2083ee517f71c (diff) | |
download | dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.gz dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.bz2 dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.lz dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.xz dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.zst dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.zip |
Merge pull request #1466 from 0xProject/feature/website/remove-ts-warnings
[website] Fix TS errors
Diffstat (limited to 'packages/website/ts/@next/components/blockIconLink.tsx')
-rw-r--r-- | packages/website/ts/@next/components/blockIconLink.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/website/ts/@next/components/blockIconLink.tsx b/packages/website/ts/@next/components/blockIconLink.tsx index bdcc5c29d..8d66a4afa 100644 --- a/packages/website/ts/@next/components/blockIconLink.tsx +++ b/packages/website/ts/@next/components/blockIconLink.tsx @@ -1,20 +1,24 @@ +import { History, Location } from 'history'; import * as React from 'react'; -import { withRouter } from 'react-router-dom'; +import { match, withRouter } from 'react-router-dom'; import styled from 'styled-components'; import { Button } from 'ts/@next/components/button'; import { Icon } from 'ts/@next/components/icon'; -interface Props { +interface BaseComponentProps { icon?: string; iconComponent?: React.ReactNode; title: string; linkLabel: string; linkUrl?: string; linkAction?: () => void; + history: History; + location: Location; + match: match<any>; } -class BaseComponent extends React.PureComponent<Props> { +class BaseComponent extends React.PureComponent<BaseComponentProps> { public onClick = (): void => { const { linkAction, linkUrl } = this.props; @@ -44,7 +48,7 @@ class BaseComponent extends React.PureComponent<Props> { } } -export const BlockIconLink = withRouter(BaseComponent); +export const BlockIconLink = withRouter<BaseComponentProps>(BaseComponent); const Wrap = styled.div` width: calc(50% - 15px); |