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/pages | |
parent | 0a84ee748823e5099b0767eedc5de95c71cb8f4e (diff) | |
parent | 5d3d596909e0e4d12d3372e58ae2083ee517f71c (diff) | |
download | dexon-sol-tools-bed5b275e4da4dd9a822b068849ba0ef28829a70.tar.gz 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/pages')
-rw-r--r-- | packages/website/ts/@next/pages/community.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/@next/pages/instant/config_generator.tsx | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/website/ts/@next/pages/community.tsx b/packages/website/ts/@next/pages/community.tsx index eb3e7210d..a259e3438 100644 --- a/packages/website/ts/@next/pages/community.tsx +++ b/packages/website/ts/@next/pages/community.tsx @@ -253,9 +253,11 @@ const EventContent = styled.div` padding: 30px 30px; `; -// Community Links +interface StyledCommunityLinkProps { + bgColor: string; +} const StyledCommunityLink = styled.a` - background-color: ${(props: CommunityLinkProps) => props.bgColor}; + background-color: ${(props: StyledCommunityLinkProps) => props.bgColor}; color: ${colors.white}; width: 175px; height: 175px; diff --git a/packages/website/ts/@next/pages/instant/config_generator.tsx b/packages/website/ts/@next/pages/instant/config_generator.tsx index d4497ac92..3f00e33e2 100644 --- a/packages/website/ts/@next/pages/instant/config_generator.tsx +++ b/packages/website/ts/@next/pages/instant/config_generator.tsx @@ -128,7 +128,7 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps, Confi private readonly _handleAffiliatePercentageLearnMoreClick = (): void => { window.open(`${WebsitePaths.Wiki}#Learn-About-Affiliate-Fees`, '_blank'); }; - private readonly _handleSRASelection = (event: Event) => { + private readonly _handleSRASelection = (event: React.ChangeEvent<HTMLSelectElement>) => { const sraEndpoint = event.target.value; const newConfig: ZeroExInstantBaseConfig = { ...this.props.value, |