diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-12-15 04:33:08 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-15 04:33:08 +0800 |
commit | b07892bb48475e461e07926315a2e43ea5cfb46f (patch) | |
tree | 9b9aa3836c542b86468b86ead0dad2d62346aea0 /packages/website/ts/@next/components/header.tsx | |
parent | f0581285d0580062b29af3e0d5bc3af9d9e57d0d (diff) | |
download | dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar.gz dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar.bz2 dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar.lz dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar.xz dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.tar.zst dexon-0x-contracts-b07892bb48475e461e07926315a2e43ea5cfb46f.zip |
Type fixes
Diffstat (limited to 'packages/website/ts/@next/components/header.tsx')
-rw-r--r-- | packages/website/ts/@next/components/header.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index dae2741e4..047f759c9 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -11,16 +11,16 @@ import { Hamburger } from 'ts/@next/components/hamburger'; import { Logo } from 'ts/@next/components/logo'; import { MobileNav } from 'ts/@next/components/mobileNav'; import { FlexWrap } from 'ts/@next/components/newLayout'; -import { ThemeInterface } from 'ts/@next/components/siteWrap'; +import { ThemeValuesInterface } from 'ts/@next/components/siteWrap'; interface HeaderProps { location?: Location; isNavToggled?: boolean; toggleMobileNav?: () => void; - theme: ThemeInterface; + theme: ThemeValuesInterface; } -interface NavItem { +interface NavItemProps { url?: string; id?: string; text?: string; @@ -32,7 +32,7 @@ interface DropdownWrapInterface { width?: number; } -const navItems: NavItem[] = [ +const navItems: NavItemProps[] = [ { id: 'why', url: '/next/why', @@ -104,7 +104,7 @@ class HeaderBase extends React.Component<HeaderProps> { export const Header = withTheme(HeaderBase); -const NavItem = (props: { link: NavItem; key: string }) => { +const NavItem = (props: { link: NavItemProps; key: string }) => { const { link } = props; const Subnav = link.dropdownComponent; @@ -116,7 +116,7 @@ const NavItem = (props: { link: NavItem; key: string }) => { {link.dropdownComponent && <DropdownWrap width={link.dropdownWidth}> - {Subnav} + <Subnav /> </DropdownWrap> } </LinkWrap> |