Style improvements in home, navigation, and footer
This commit is contained in:
parent
f76abc7c89
commit
ce18aab493
21 changed files with 215 additions and 118 deletions
|
|
@ -35,15 +35,22 @@ class CenterInMyPosition extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { onlyIcon, t } = this.props;
|
||||
const msg = t('Centrar en tu ubicación');
|
||||
return (
|
||||
<Button bsStyle="default" onClick={() => this.onClick()}>
|
||||
<i className="icons icon-target" />{this.props.t('Centrar en tu ubicación')}
|
||||
<i className="icons icon-target" title={!onlyIcon ? msg : ''} />{!onlyIcon ? msg : ''}
|
||||
</Button>);
|
||||
}
|
||||
}
|
||||
|
||||
CenterInMyPosition.defaultProps = {
|
||||
onlyIcon: false
|
||||
};
|
||||
|
||||
CenterInMyPosition.propTypes = {
|
||||
t: PropTypes.func.isRequired
|
||||
t: PropTypes.func.isRequired,
|
||||
onlyIcon: PropTypes.bool
|
||||
};
|
||||
|
||||
export default translate([], { wait: true })(CenterInMyPosition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue