aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/@next/components/button.tsx2
-rw-r--r--packages/website/ts/@next/components/header.tsx2
-rw-r--r--packages/website/ts/@next/components/newsletter_form.tsx3
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;