diff options
Diffstat (limited to 'packages/website/ts/@next/components')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/@next/components/header.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/@next/components/siteWrap.tsx | 3 |
3 files changed, 3 insertions, 7 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index 4c646e199..fb7c913a5 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -2,6 +2,8 @@ import * as React from 'react'; import { Link as ReactRouterLink, NavLink as ReactRouterNavLink } from 'react-router-dom'; import styled from 'styled-components'; +import { ThemeInterface } from 'ts/@next/components/siteWrap'; + import { colors } from 'ts/style/colors'; interface ButtonInterface { @@ -19,9 +21,7 @@ interface ButtonInterface { type?: string; to?: string; onClick?: () => any; - theme?: { - textColor: string; - }; + theme: ThemeInterface; } export const Button = (props: ButtonInterface) => { diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index 881ec799e..fc754af7e 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -102,7 +102,6 @@ class HeaderBase extends React.Component<HeaderProps, HeaderState> { <NavItem key={`navlink-${index}`} link={link} - index={index} /> ))} </NavLinks> diff --git a/packages/website/ts/@next/components/siteWrap.tsx b/packages/website/ts/@next/components/siteWrap.tsx index e0956c582..cc7e4a098 100644 --- a/packages/website/ts/@next/components/siteWrap.tsx +++ b/packages/website/ts/@next/components/siteWrap.tsx @@ -7,8 +7,6 @@ import { Footer } from 'ts/@next/components/footer'; import { Header } from 'ts/@next/components/header'; import { GlobalStyles } from 'ts/@next/constants/globalStyle'; -// Note(ez): We'll define the theme and provide it via a prop -// e.g. theme dark/light/etc. interface Props { theme?: 'dark' | 'light' | 'gray'; children: any; @@ -22,7 +20,6 @@ interface MainProps { isNavToggled: boolean; } -// we proabbly want to put this somewhere else (themes) export interface ThemeInterface { [key: string]: { bgColor: string; |