diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-21 01:56:48 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-21 01:56:48 +0800 |
commit | 521679c87c612d9f6b9a760edc4db44d17118a62 (patch) | |
tree | 89021a785e683124ac8f10e0dc46e0558a0cadaf | |
parent | fb003903c7b0dacc808e10a7ecc082a52c23f1eb (diff) | |
download | dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar.gz dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar.bz2 dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar.lz dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar.xz dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.tar.zst dexon-sol-tools-521679c87c612d9f6b9a760edc4db44d17118a62.zip |
Fix types
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/@next/components/header.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/@next/components/newsletter_form.tsx | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 675f69308..348f1b7b4 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -37,7 +37,7 @@ export const Button = (props: ButtonInterface) => { linkElem = ReactRouterLink; } - const Component = linkElem ? ButtonBase.withComponent(linkElem) : ButtonBase; + const Component = linkElem ? ButtonBase.withComponent<any>(linkElem) : ButtonBase; const targetProp = href && target ? { target } : {}; return ( diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index 24bfa28ba..e886923df 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -29,7 +29,7 @@ interface NavItemProps { id?: string; text?: string; dropdownWidth?: number; - dropdownComponent?: React.ReactNode; + dropdownComponent?: React.FunctionComponent<any>; shouldOpenInNewTab?: boolean; } diff --git a/packages/website/ts/@next/components/newsletter_form.tsx b/packages/website/ts/@next/components/newsletter_form.tsx index ce6b04993..8572ccc5f 100644 --- a/packages/website/ts/@next/components/newsletter_form.tsx +++ b/packages/website/ts/@next/components/newsletter_form.tsx @@ -15,6 +15,7 @@ interface InputProps { type: string; label: string; textColor: string; + required?: boolean; } interface ArrowProps { @@ -78,7 +79,7 @@ class Form extends React.Component<FormProps> { ); } - private async _onSubmitAsync(e: Event): Promise<void> { + private async _onSubmitAsync(e: React.FormEvent<HTMLFormElement>): Promise<void> { e.preventDefault(); const email = this.emailInput.current.value; |