Guest User

Untitled

a guest
Oct 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. import * as React from 'react';
  2. import styled from 'styled-components';
  3.  
  4. interface InnerSectionContainerProps {
  5. // tslint:disable-next-line:no-any
  6. children: any;
  7. inner: boolean;
  8. }
  9.  
  10. const Container = styled.div`
  11. ${({ inner }) => inner && `
  12. max-width: 1150px;
  13. margin: 0px auto 0 auto;
  14. `}
  15. `;
  16.  
  17. export default function InnerSectionContainer(props: InnerSectionContainerProps) {
  18. return (
  19. <Container inner={props.inner}>
  20. {props.children}
  21. </Container>
  22. );
  23. }
  24.  
  25. [ts] Type 'ThemedStyledProps<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any>' has no property 'inner' and no string index signature.
Add Comment
Please, Sign In to add comment