From 0f9ef20036c35dfbd90e6221c168cabd52979b54 Mon Sep 17 00:00:00 2001 From: Daniil Senkiv Date: Tue, 23 Jul 2019 10:58:49 +0300 Subject: [PATCH] Web: components: ToggleContent: remove attributes --- .../src/components/toggle-content/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/ASC.Web.Components/src/components/toggle-content/index.js b/web/ASC.Web.Components/src/components/toggle-content/index.js index f2dc4315af..43ecd72633 100644 --- a/web/ASC.Web.Components/src/components/toggle-content/index.js +++ b/web/ASC.Web.Components/src/components/toggle-content/index.js @@ -5,18 +5,13 @@ import { Text } from '../text' import PropTypes from 'prop-types' -const StyledContent = styled.div.attrs((props) => ({ - isOpen: props.isOpen -}))` - +const StyledContent = styled.div` color: #333; display: ${props => props.isOpen ? 'block' : 'none'}; padding-top: 9px; `; -const Arrow = styled(Icons.ArrowContentIcon).attrs((props) => ({ - isOpen: props.isOpen -}))` +const Arrow = styled(Icons.ArrowContentIcon)` margin-right: 9px; margin-bottom: 5px;