You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
708 B

  1. import PureRenderMixin from 'react-addons-pure-render-mixin';
  2. const outerStyle = {
  3. padding: '15px',
  4. fontSize: '16px',
  5. background: '#2f3441',
  6. flex: '0 0 auto',
  7. cursor: 'pointer',
  8. color: '#2b90d9'
  9. };
  10. const iconStyle = {
  11. display: 'inline-block',
  12. marginRight: '5px'
  13. };
  14. const ColumnBackButton = React.createClass({
  15. contextTypes: {
  16. router: React.PropTypes.object
  17. },
  18. mixins: [PureRenderMixin],
  19. handleClick () {
  20. this.context.router.goBack();
  21. },
  22. render () {
  23. return (
  24. <div onClick={this.handleClick} style={outerStyle}>
  25. <i className='fa fa-fw fa-chevron-left' style={iconStyle} />
  26. Back
  27. </div>
  28. );
  29. }
  30. });
  31. export default ColumnBackButton;