aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-21 01:21:29 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-21 01:21:29 +0800
commitfb003903c7b0dacc808e10a7ecc082a52c23f1eb (patch)
tree0663986d3e3676bcf98e68b80edeb45642c773c3 /packages/website
parent6dbcdad1ffdeb0dfc3a87d5a33f679553610f47d (diff)
downloaddexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar.gz
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar.bz2
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar.lz
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar.xz
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.tar.zst
dexon-sol-tools-fb003903c7b0dacc808e10a7ecc082a52c23f1eb.zip
Fix types
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/@next/components/link.tsx1
-rw-r--r--packages/website/ts/@next/components/mobileNav.tsx7
-rw-r--r--packages/website/ts/@next/components/modals/input.tsx1
-rw-r--r--packages/website/ts/@next/pages/instant/config_generator.tsx2
4 files changed, 8 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/link.tsx b/packages/website/ts/@next/components/link.tsx
index a7711451b..080a0abcc 100644
--- a/packages/website/ts/@next/components/link.tsx
+++ b/packages/website/ts/@next/components/link.tsx
@@ -14,6 +14,7 @@ interface LinkInterface {
textColor: string;
};
shouldOpenInNewTab?: boolean;
+ target?: string;
}
export const Link = (props: LinkInterface) => {
diff --git a/packages/website/ts/@next/components/mobileNav.tsx b/packages/website/ts/@next/components/mobileNav.tsx
index 122036b9a..13cf46fca 100644
--- a/packages/website/ts/@next/components/mobileNav.tsx
+++ b/packages/website/ts/@next/components/mobileNav.tsx
@@ -96,13 +96,16 @@ const Overlay = styled.div`
cursor: pointer;
`;
+interface SectionProps {
+ isDark?: boolean;
+}
const Section =
styled.div <
- { isDark: boolean } >
+ SectionProps >
`
width: 100%;
padding: 15px 30px;
- background-color: ${props => props.isDark && props.theme.mobileNavBgLower};
+ background-color: ${props => (props.isDark ? props.theme.mobileNavBgLower : 'transparent')};
`;
const Grid =
diff --git a/packages/website/ts/@next/components/modals/input.tsx b/packages/website/ts/@next/components/modals/input.tsx
index d4d53402a..e3062b895 100644
--- a/packages/website/ts/@next/components/modals/input.tsx
+++ b/packages/website/ts/@next/components/modals/input.tsx
@@ -13,6 +13,7 @@ interface InputProps {
type?: string;
errors?: ErrorProps;
isErrors?: boolean;
+ required?: boolean;
}
interface ErrorProps {
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,