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/Intro.tsx | |
parent | 0b46f44ad37afb17341b394b16e3317e3bbbd285 (diff) | |
download | dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar.gz dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar.bz2 dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar.lz dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar.xz dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.tar.zst dexon-sol-tools-6e1014a64755757777ddc0a58b2d409590efe42e.zip |
remove unnecessary children in Interface
Diffstat (limited to 'packages/dev-tools-pages/ts/components/Intro.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/Intro.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/dev-tools-pages/ts/components/Intro.tsx b/packages/dev-tools-pages/ts/components/Intro.tsx index ecc926e3c..54b14f237 100644 --- a/packages/dev-tools-pages/ts/components/Intro.tsx +++ b/packages/dev-tools-pages/ts/components/Intro.tsx @@ -44,13 +44,8 @@ const StyledIntroAside = styled.div` `}; `; -interface IntroProps { - children?: React.ReactNode; -} - interface IntroLeadProps { title: string; - children?: React.ReactNode; } const IntroLead: React.StatelessComponent<IntroLeadProps> = props => ( @@ -60,13 +55,13 @@ const IntroLead: React.StatelessComponent<IntroLeadProps> = props => ( </StyledIntroLead> ); -const IntroAside: React.StatelessComponent<IntroProps> = props => ( +const IntroAside: React.StatelessComponent<{}> = props => ( <Breakout> <StyledIntroAside>{props.children}</StyledIntroAside> </Breakout> ); -const Intro: React.StatelessComponent<IntroProps> = props => ( +const Intro: React.StatelessComponent<{}> = props => ( <Container wide={true}> <Main>{props.children}</Main> </Container> |