From c5b63ca44120f83753ba23df63db1af85ae348f3 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Fri, 14 Dec 2018 18:05:14 +0100 Subject: Misc typing --- packages/website/ts/@next/components/aboutPageLayout.tsx | 3 ++- packages/website/ts/@next/components/button.tsx | 2 +- packages/website/ts/@next/components/link.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/website/ts/@next/components') diff --git a/packages/website/ts/@next/components/aboutPageLayout.tsx b/packages/website/ts/@next/components/aboutPageLayout.tsx index 71cb7ef85..58ac2ff83 100644 --- a/packages/website/ts/@next/components/aboutPageLayout.tsx +++ b/packages/website/ts/@next/components/aboutPageLayout.tsx @@ -14,7 +14,7 @@ interface Props { description: React.ReactNode | string; linkLabel?: string; linkUrl?: string; - children?: Node; + children?: React.ReactNode; } export const AboutPageLayout = (props: Props) => ( @@ -41,6 +41,7 @@ export const AboutPageLayout = (props: Props) => ( {props.linkLabel} diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 6f5988e36..05afa3534 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -9,7 +9,7 @@ import { colors } from 'ts/style/colors'; interface ButtonInterface { bgColor?: string; color?: string; - children?: Node | string; + children?: React.ReactNode | string; isTransparent?: boolean; isNoBorder?: boolean; isNoPadding?: boolean; diff --git a/packages/website/ts/@next/components/link.tsx b/packages/website/ts/@next/components/link.tsx index ec0cba15e..c3633987a 100644 --- a/packages/website/ts/@next/components/link.tsx +++ b/packages/website/ts/@next/components/link.tsx @@ -4,7 +4,7 @@ import styled from 'styled-components'; interface LinkInterface { color?: string; - children?: Node | string; + children?: React.ReactNode | string; isNoArrow?: boolean; hasIcon?: boolean | string; isBlock?: boolean; -- cgit v1.2.3