Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
unselected).map(i => )}
:
null}
;
}
}
FilterDropdown.displayName = 'FilterDropdown';
export default listenToOutsideClick(FilterDropdown);
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.userName,
isAuthenticated: state.auth.isAuthenticated
}
};
function mapDispatchToProps(dispatch) {
return bindActionCreators(actionCreators, dispatch)
};
@connect(mapStateToProps, mapDispatchToProps)
@listensToClickOutside()
export class Header extends Component {
constructor(props) {
super(props);
this.state = {
open: false
}
}
dispatchNewRoute(route) {
browserHistory.push(route)
this.setState({
open: false
})
}
/>
);
}
}
OutsideClickAwareCalendar.propTypes = {
defaultValue: React.PropTypes.instanceOf(Date),
maxDate: React.PropTypes.instanceOf(Date),
minDate: React.PropTypes.instanceOf(Date),
onClickOutside: React.PropTypes.func.isRequired,
onDatePicked: React.PropTypes.func.isRequired
};
export default listenToOutsideClick(OutsideClickAwareCalendar);
}
}
ViolationCard.displayName = 'ViolationCard';
ViolationCard.contextTypes = {
router: React.PropTypes.object
};
ViolationCard.propTypes = {
autoFocus: React.PropTypes.bool,
onResolve: React.PropTypes.func,
onClickOutside: React.PropTypes.func,
accounts: React.PropTypes.object,
violation: React.PropTypes.object.isRequired,
editable: React.PropTypes.bool
};
export default listenToOutsideClick(ViolationCard);
:
null}
;
}
}
DateDropdown.displayName = 'DateDropdown';
DateDropdown.propTypes = {
onUpdate: React.PropTypes.func,
range: React.PropTypes.array,
title: React.PropTypes.string
};
export default listenToOutsideClick(DateDropdown);