<commit_before>import React from 'react';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';

export default function RoutePlanner({ pickPointMode, transportType, onChangeTransportType, routePlannerPoints: { start, finish }, onChangePickPointMode, onCancel }) {
  return (  
    <div>
      <Nav>
        <NavItem onClick={onCancel}><Glyphicon glyph="remove"/> Zavrieť plánovač</NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'start')} active={pickPointMode === 'start'}  disabled={!!start.lat}>
          <Glyphicon glyph="triangle-right" style={{color: '#32CD32'}}/> Pridať štart
        </NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'midpoint')} active={pickPointMode === 'midpoint'}>
          <Glyphicon glyph="flag" style={{color: 'grey'}}/> Pridať zastávku
        </NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'finish')} active={pickPointMode === 'finish'} disabled={!!finish.lat}>
          <Glyphicon glyph="record" style={{color: '#FF6347'}}/> Pridať cieľ
        </NavItem>
      </Nav>
      <Nav pullRight={true}>
        <NavItem active={transportType === 'car'} onClick={onChangeTransportType.bind(null, 'car')}>
          <i className="fa fa-car" aria-hidden="true"></i>
        </NavItem>
        <NavItem active={transportType === 'walk'} onClick={onChangeTransportType.bind(null, 'walk')}>
          <i className="fa fa-male" aria-hidden="true"></i>
        </NavItem>
        <NavItem active={transportType === 'bicycle'} onClick={onChangeTransportType.bind(null, 'bicycle')}>
          <i className="fa fa-bicycle" aria-hidden="true"></i>
        </NavItem>
      </Nav>
    </div>
  );
}

RoutePlanner.propTypes = {
  transportType: React.PropTypes.string,
  onChangeTransportType: React.PropTypes.func.isRequired,
  pickPointMode: React.PropTypes.string,
  routePlannerPoints: React.PropTypes.object.isRequired,
  onChangePickPointMode: React.PropTypes.func.isRequired,
  onCancel: React.PropTypes.func.isRequired
};
<commit_msg>#4: change transport type picker from NavItem to Button to occupy less space on smartphone<commit_after>import React from 'react';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import Button from 'react-bootstrap/lib/Button';
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup';

export default function RoutePlanner({ pickPointMode, transportType, onChangeTransportType, routePlannerPoints: { start, finish }, onChangePickPointMode, onCancel }) {
  return (  
    <div>
      <Nav>
        <NavItem onClick={onCancel}><Glyphicon glyph="remove"/> Zavrieť plánovač</NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'start')} active={pickPointMode === 'start'}  disabled={!!start.lat}>
          <Glyphicon glyph="triangle-right" style={{color: '#32CD32'}}/> Pridať štart
        </NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'midpoint')} active={pickPointMode === 'midpoint'}>
          <Glyphicon glyph="flag" style={{color: 'grey'}}/> Pridať zastávku
        </NavItem>
        <NavItem onClick={onChangePickPointMode.bind(null, 'finish')} active={pickPointMode === 'finish'} disabled={!!finish.lat}>
          <Glyphicon glyph="record" style={{color: '#FF6347'}}/> Pridať cieľ
        </NavItem>
      </Nav>
      <ButtonGroup>
        <Button className="navbar-btn" active={transportType === 'car'} onClick={onChangeTransportType.bind(null, 'car')}>
          <i className="fa fa-car" aria-hidden="true"></i>
        </Button>
        <Button className="navbar-btn" active={transportType === 'walk'} onClick={onChangeTransportType.bind(null, 'walk')}>
          <i className="fa fa-male" aria-hidden="true"></i>
        </Button>
        <Button className="navbar-btn" active={transportType === 'bicycle'} onClick={onChangeTransportType.bind(null, 'bicycle')}>
          <i className="fa fa-bicycle" aria-hidden="true"></i>
        </Button>
        </ButtonGroup>
    </div>
  );
}

RoutePlanner.propTypes = {
  transportType: React.PropTypes.string,
  onChangeTransportType: React.PropTypes.func.isRequired,
  pickPointMode: React.PropTypes.string,
  routePlannerPoints: React.PropTypes.object.isRequired,
  onChangePickPointMode: React.PropTypes.func.isRequired,
  onCancel: React.PropTypes.func.isRequired
};

{'fraction_non_alphanumeric': 0.15393183337046112, 'fraction_numerical': 0.003787034974381822, 'mean_word_length': 4.208816705336427, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5694055', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1370, 'n_words': 268}