aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-11-29 18:48:47 +0800
committerFred Carlsen <fred@sjelfull.no>2018-11-29 18:48:47 +0800
commitef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199 (patch)
treeb77c95151a4fdd80df9821910e273163886145ea /packages
parentaa4234a38cfdbf2ff4b674f5847c6983d87c4cc9 (diff)
downloaddexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar.gz
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar.bz2
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar.lz
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar.xz
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.tar.zst
dexon-sol-tools-ef6cffd9d9d4dc97a29ce7fe10fd57b220f3a199.zip
Fix linting and typing errors in footer
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/@next/components/footer.tsx13
1 files changed, 5 insertions, 8 deletions
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<LinkInterface>;
- }
+ links: LinkInterface[];
}
interface LinkListProps {
- links: Array<LinkInterface>;
+ links: LinkInterface[];
}
-const linkRows: LinkRows = [
+const linkRows: LinkRows[] = [
{
heading: 'Products',
links: [
@@ -85,13 +83,12 @@ export const Footer: React.StatelessComponent<FooterInterface> = ({}) => (
</FooterWrap>
);
-
const LinkList = (props: LinkListProps) => (
<ul>
{_.map(props.links, (link, index) => (
<li key={`fl-${index}`}>
<Link href={link.url}>
- { link.text }
+ {link.text}
</Link>
</li>
))}