| 2 | import PropTypes from 'prop-types'; |
| 3 | |
| 4 | export default class Header extends React.Component { |
| 5 | render() { |
| 6 | return ( |
| 7 | <header> |
| 8 | <a className='button' onClick={ this._logoClicked.bind(this) }> |
| 9 | Logo |
| 10 | </a> |
| 11 | <hr /> |
| 12 | { this.props.title } |
| 13 | <hr /> |
| 14 | { this.props.children } |
| 15 | </header> |
| 16 | ); |
| 17 | } |
| 18 | _logoClicked() { |
| 19 | this.props.track && this.props.track('logo-clicked'); |
| 20 | } |
| 21 | }; |
| 22 | |
| 23 | Header.propTypes = { |
| 24 | title: PropTypes.any, |
nothing calls this directly
no outgoing calls
no test coverage detected