|
|
|
@ -38,6 +38,7 @@ export default class Compose extends React.PureComponent {
|
|
|
|
|
columns: ImmutablePropTypes.list.isRequired,
|
|
|
|
|
multiColumn: PropTypes.bool,
|
|
|
|
|
showSearch: PropTypes.bool,
|
|
|
|
|
isSearchPage: PropTypes.bool,
|
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -58,7 +59,7 @@ export default class Compose extends React.PureComponent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
|
const { multiColumn, showSearch, intl } = this.props;
|
|
|
|
|
const { multiColumn, showSearch, isSearchPage, intl } = this.props;
|
|
|
|
|
|
|
|
|
|
let header = '';
|
|
|
|
|
|
|
|
|
@ -102,7 +103,7 @@ export default class Compose extends React.PureComponent {
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<Motion defaultStyle={{ x: -100 }} style={{ x: spring(showSearch ? 0 : -100, { stiffness: 210, damping: 20 }) }}>
|
|
|
|
|
<Motion defaultStyle={{ x: isSearchPage ? 0 : -100 }} style={{ x: spring(showSearch || isSearchPage ? 0 : -100, { stiffness: 210, damping: 20 }) }}>
|
|
|
|
|
{({ x }) => (
|
|
|
|
|
<div className='drawer__inner darker' style={{ transform: `translateX(${x}%)`, visibility: x === -100 ? 'hidden' : 'visible' }}>
|
|
|
|
|
<SearchResultsContainer />
|
|
|
|
|