From db1babd5be1b12e94056f48d496c7a6511cecdaa Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 30 Nov 2018 14:56:19 +0100 Subject: Makes ts happy with running a function on an optional property value --- packages/website/ts/@next/components/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/website/ts/@next/components/layout.tsx b/packages/website/ts/@next/components/layout.tsx index e66dac8a9..47d9173c3 100644 --- a/packages/website/ts/@next/components/layout.tsx +++ b/packages/website/ts/@next/components/layout.tsx @@ -107,7 +107,7 @@ export const Section = styled.section` const WrapBase = styled.div` max-width: ${props => WRAPPER_WIDTHS[props.width || 'default']}; - padding: ${props => _getPadding(props.margin)}; + padding: ${props => props.margin && _getPadding(props.margin)}; background-color: ${props => props.bgColor}; margin: 0 auto; `; -- cgit