From 37e5a8a8b7f841f5714cb90e0d9429ea80bf9009 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Mon, 17 Dec 2018 13:29:46 -0800 Subject: Prettify file --- .../website/ts/@next/components/definition.tsx | 37 +++++++++------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/packages/website/ts/@next/components/definition.tsx b/packages/website/ts/@next/components/definition.tsx index 77f837294..da26ee140 100644 --- a/packages/website/ts/@next/components/definition.tsx +++ b/packages/website/ts/@next/components/definition.tsx @@ -25,11 +25,7 @@ interface Props { export const Definition = (props: Props) => ( - + ( {typeof props.description === 'string' ? ( - - {props.description} - + {props.description} ) : ( - <> - {props.description} - + <>{props.description} )} - {props.actions && + {props.actions && ( {props.actions.map((item, index) => ( - ))} - } + )} ); -const Wrap = styled.div` +const Wrap = + styled.div < + Props > + ` max-width: ${props => props.isInline && '354px'}; & + & { @@ -78,7 +68,7 @@ const Wrap = styled.div` } @media (min-width: 768px) { - width: ${props => props.isInline ? 'calc(33.3333% - 30px)' : '100%'}; + width: ${props => (props.isInline ? 'calc(33.3333% - 30px)' : '100%')}; display: ${props => props.isInlineIcon && 'flex'}; justify-content: ${props => props.isInlineIcon && 'space-between'}; align-items: ${props => props.isInlineIcon && 'center'}; @@ -94,7 +84,10 @@ const Wrap = styled.div` } `; -const TextWrap = styled.div` +const TextWrap = + styled.div < + Props > + ` width: 100%; max-width: 560px; -- cgit