diff options
author | August Skare <post@augustskare.no> | 2018-11-19 16:47:34 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-19 16:47:34 +0800 |
commit | 6e1014a64755757777ddc0a58b2d409590efe42e (patch) | |
tree | ebb6b7534b5b82c92bc93693df693aca21918fb7 /packages/dev-tools-pages/ts/components/Hero.tsx | |
parent | 0b46f44ad37afb17341b394b16e3317e3bbbd285 (diff) | |
download | dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar.gz dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar.bz2 dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar.lz dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar.xz dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.tar.zst dexon-0x-contracts-6e1014a64755757777ddc0a58b2d409590efe42e.zip |
remove unnecessary children in Interface
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Hero.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Hero.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/dev-tools-pages/ts/components/Hero.tsx b/packages/dev-tools-pages/ts/components/Hero.tsx index 9db15cb36..8b6d6ade3 100644 --- a/packages/dev-tools-pages/ts/components/Hero.tsx +++ b/packages/dev-tools-pages/ts/components/Hero.tsx @@ -7,11 +7,7 @@ import { media } from 'ts/variables'; import { Button } from './Button'; import { Beta } from './Typography'; -interface HeroProps extends ContextInterface { - children: React.ReactNode; -} - -const Hero: React.StatelessComponent<HeroProps> = ({ children }) => ( +const Hero: React.StatelessComponent<ContextInterface> = ({ children }) => ( <ThemeContext.Consumer> {({ subtitle, tagline }: ContextInterface) => ( <StyledHero> |