Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as React from 'react';
- import styled from 'styled-components';
- interface InnerSectionContainerProps {
- // tslint:disable-next-line:no-any
- children: any;
- inner: boolean;
- }
- const Container = styled.div`
- ${({ inner }) => inner && `
- max-width: 1150px;
- margin: 0px auto 0 auto;
- `}
- `;
- export default function InnerSectionContainer(props: InnerSectionContainerProps) {
- return (
- <Container inner={props.inner}>
- {props.children}
- </Container>
- );
- }
- [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