From ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199 Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Thu, 29 Nov 2018 11:48:47 +0100 Subject: Fix linting and typing errors in footer --- packages/website/ts/@next/components/footer.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'packages') diff --git a/packages/website/ts/@next/components/footer.tsx b/packages/website/ts/@next/components/footer.tsx index be5c075f9..b962b8f34 100644 --- a/packages/website/ts/@next/components/footer.tsx +++ b/packages/website/ts/@next/components/footer.tsx @@ -5,7 +5,7 @@ import styled from 'styled-components'; import { colors } from 'ts/style/colors'; import { Button } from './button'; -import { Section, Wrap, Column } from './layout'; +import { Column, Section, Wrap } from './layout'; import { Logo } from './logo'; interface FooterInterface { @@ -18,17 +18,15 @@ interface LinkInterface { } interface LinkRows { - [key: string]: { heading: string; - links: Array; - } + links: LinkInterface[]; } interface LinkListProps { - links: Array; + links: LinkInterface[]; } -const linkRows: LinkRows = [ +const linkRows: LinkRows[] = [ { heading: 'Products', links: [ @@ -85,13 +83,12 @@ export const Footer: React.StatelessComponent = ({}) => ( ); - const LinkList = (props: LinkListProps) => (
    {_.map(props.links, (link, index) => (
  • - { link.text } + {link.text}
  • ))} -- cgit v1.2.3