| Total Complexity | 2 |
| Complexity/F | 1 |
| Lines of Code | 30 |
| Function Count | 2 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React from 'react' |
||
| 2 | import ReactSVG from 'react-svg' |
||
| 3 | import PropTypes from 'prop-types' |
||
| 4 | import account from '../images/account.svg' |
||
| 5 | |||
| 6 | class HelpControl extends React.Component { |
||
| 7 | handleButtonClick() { |
||
| 8 | location.href = |
||
| 9 | 'https://arizona-primo.hosted.exlibrisgroup.com/primo-explore/account?vid=01UA§ion=overview' |
||
| 10 | } |
||
| 11 | |||
| 12 | render() { |
||
| 13 | return ( |
||
| 14 | <div className="header__control"> |
||
| 15 | <button |
||
| 16 | className="header__control-button" |
||
| 17 | onClick={this.handleButtonClick} |
||
| 18 | > |
||
| 19 | <div className="header__control-icon"> |
||
| 20 | <ReactSVG path={account} /> |
||
| 21 | </div> |
||
| 22 | My account |
||
| 23 | </button> |
||
| 24 | </div> |
||
| 25 | ) |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | export default HelpControl |
||
| 30 |