WIP <Compose> Refactor; <OnboardingModal> ed.
This commit is contained in:
@@ -143,6 +143,12 @@ Drawer.propTypes = {
|
||||
}).isRequired,
|
||||
};
|
||||
|
||||
// Default props.
|
||||
Drawer.defaultProps = {
|
||||
dispatch: {},
|
||||
state: {},
|
||||
};
|
||||
|
||||
// Connecting and export.
|
||||
export { Drawer as WrappedComponent };
|
||||
export default wrap(Drawer, mapStateToProps, mapDispatchToProps, true);
|
||||
|
||||
@@ -109,7 +109,7 @@ export default class DrawerSearch extends React.PureComponent {
|
||||
<input
|
||||
type='text'
|
||||
placeholder={intl.formatMessage(messages.placeholder)}
|
||||
value={value}
|
||||
value={value || ''}
|
||||
onChange={change}
|
||||
onKeyUp={keyUp}
|
||||
onFocus={focus}
|
||||
@@ -129,7 +129,7 @@ export default class DrawerSearch extends React.PureComponent {
|
||||
|
||||
<Overlay
|
||||
placement='bottom'
|
||||
show={expanded && !value.length && !submitted}
|
||||
show={expanded && !(value || '').length && !submitted}
|
||||
target={this}
|
||||
><DrawerSearchPopout /></Overlay>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user