diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-11-30 21:56:19 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-11-30 21:56:19 +0800 |
commit | db1babd5be1b12e94056f48d496c7a6511cecdaa (patch) | |
tree | bc4c1a41864b71aa91ba5e10c06e39ea2036c3f1 | |
parent | bb63c5c86fd6559c13e2cebef253e81f379b46a6 (diff) | |
download | dexon-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
-rw-r--r-- | packages/website/ts/@next/components/layout.tsx | 2 |
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; `; |