0
0
Fork 0

Upgrade ESLint to version 4.x (#6276)

This commit is contained in:
Yamagishi Kazutoshi 2018-01-18 00:57:15 +09:00 committed by Eugen Rochko
parent fb16c37d2a
commit 0a103c7749
19 changed files with 411 additions and 388 deletions

View file

@ -5,11 +5,11 @@ import PropTypes from 'prop-types';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight : 0 }} style={{ opacity: spring(!isVisible ? 0 : 100), height: spring(!isVisible ? 0 : fullHeight) }}>
{({ opacity, height }) =>
{({ opacity, height }) => (
<div style={{ height: `${height}px`, overflow: 'hidden', opacity: opacity / 100, display: Math.floor(opacity) === 0 ? 'none' : 'block' }}>
{children}
</div>
}
)}
</Motion>
);