aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-11-30 21:56:19 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-11-30 21:56:19 +0800
commitdb1babd5be1b12e94056f48d496c7a6511cecdaa (patch)
treebc4c1a41864b71aa91ba5e10c06e39ea2036c3f1 /packages/website/ts/@next
parentbb63c5c86fd6559c13e2cebef253e81f379b46a6 (diff)
downloaddexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar.gz
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar.bz2
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar.lz
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar.xz
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.tar.zst
dexon-sol-tools-db1babd5be1b12e94056f48d496c7a6511cecdaa.zip
Makes ts happy with running a function on an optional property value
Diffstat (limited to 'packages/website/ts/@next')
-rw-r--r--packages/website/ts/@next/components/layout.tsx2
1 files changed, 1 insertions, 1 deletions
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<SectionProps>`
const WrapBase = styled.div<WrapProps>`
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;
`;