From 6f333f2b55f1e3bfc5ec792d8dd72b00f159dc77 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Mon, 3 Dec 2018 12:21:57 +0100 Subject: Fix isFullWidth type declaration in layout --- packages/website/ts/@next/components/layout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/website/ts/@next/components') diff --git a/packages/website/ts/@next/components/layout.tsx b/packages/website/ts/@next/components/layout.tsx index 28503711c..4b0b25074 100644 --- a/packages/website/ts/@next/components/layout.tsx +++ b/packages/website/ts/@next/components/layout.tsx @@ -92,16 +92,16 @@ export const Main = styled.main` // make a const on every route to withComponent-size it. // just
? export const Section = styled.section` - width: ${props => props.fullWidth ? `calc(100% + ${GUTTER * 2}px)` : '100%'}; + width: ${props => props.isFullWidth ? `calc(100% + ${GUTTER * 2}px)` : '100%'}; padding: ${props => !props.isNoPadding && (props.isPadLarge ? '60px 30px' : '30px')}; margin-bottom: ${props => !props.isNoMargin && `${GUTTER}px`}; - margin-left: ${props => props.fullWidth && `-${GUTTER}px`}; + margin-left: ${props => props.isFullWidth && `-${GUTTER}px`}; background-color: ${props => props.bgColor}; border: 1px dotted rgba(0, 255, 0, 0.3); @media (min-width: 1560px) { - width: ${props => props.fullWidth && '100vw'}; - margin-left: ${props => props.fullWidth && `calc(750px - 50vw)`}; + width: ${props => props.isFullWidth && '100vw'}; + margin-left: ${props => props.isFullWidth && `calc(750px - 50vw)`}; } @media (max-width: ${BREAKPOINTS.mobile}) { -- cgit v1.2.3