2017-04-12 05:04:27 +00:00
|
|
|
import React, {Component} from 'react'
|
2017-04-14 01:24:24 +00:00
|
|
|
import NodeDropdownComponent from './components/NodeDropdownComponent'
|
|
|
|
import LanguageDropDownComponent from './components/LanguageDropdownComponent'
|
2017-04-14 06:20:39 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2017-04-12 05:04:27 +00:00
|
|
|
|
|
|
|
export default class Header extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props)
|
|
|
|
}
|
|
|
|
|
|
|
|
static propTypes = {
|
2017-04-14 06:20:39 +00:00
|
|
|
// LanguageDropDownComponentProps
|
|
|
|
changeLanguage: PropTypes.func,
|
|
|
|
toggleLanguageDropdown: PropTypes.func,
|
|
|
|
languageSelection: PropTypes.number,
|
|
|
|
languageToggle: PropTypes.bool,
|
|
|
|
// NodeDropdownComponentProps
|
|
|
|
changeNode: PropTypes.func,
|
|
|
|
toggleNodeDropdown: PropTypes.func,
|
|
|
|
nodeSelection: PropTypes.number,
|
|
|
|
nodeToggle: PropTypes.bool
|
2017-04-12 05:04:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
2017-04-14 06:20:39 +00:00
|
|
|
let {
|
|
|
|
languageSelection,
|
|
|
|
changeLanguage,
|
|
|
|
toggleLanguageDropdown,
|
|
|
|
languageToggle,
|
|
|
|
changeNode,
|
|
|
|
toggleNodeDropdown,
|
|
|
|
nodeSelection,
|
|
|
|
nodeToggle
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
let LanguageDropDownComponentProps = {
|
|
|
|
languageSelection,
|
|
|
|
changeLanguage,
|
|
|
|
toggleLanguageDropdown,
|
|
|
|
languageToggle,
|
|
|
|
}
|
|
|
|
|
|
|
|
let NodeDropdownComponentProps = {
|
|
|
|
changeNode,
|
|
|
|
toggleNodeDropdown,
|
|
|
|
nodeSelection,
|
|
|
|
nodeToggle
|
|
|
|
}
|
|
|
|
|
2017-04-12 05:04:27 +00:00
|
|
|
return (
|
|
|
|
<section className="bg-gradient header-branding">
|
|
|
|
<section className="container">
|
2017-04-14 06:20:39 +00:00
|
|
|
<a className="brand" href="/" aria-label="Go to homepage">
|
2017-04-12 05:04:27 +00:00
|
|
|
{/* TODO - don't hardcode image path*/}
|
|
|
|
<img
|
|
|
|
src={"https://www.myetherwallet.com/images/logo-myetherwallet.svg"} height="64px"
|
|
|
|
width="245px"
|
2017-04-14 01:24:24 +00:00
|
|
|
alt="MyEtherWallet"/>
|
|
|
|
</a>
|
|
|
|
<div className="tagline">
|
|
|
|
<span style={{maxWidth: '395px'}}>
|
|
|
|
Open-Source & Client-Side Ether Wallet · v3.6.0
|
2017-04-12 05:04:27 +00:00
|
|
|
</span>
|
2017-04-14 01:24:24 +00:00
|
|
|
|
2017-04-14 06:20:39 +00:00
|
|
|
<LanguageDropDownComponent {...LanguageDropDownComponentProps}/>
|
2017-04-14 01:24:24 +00:00
|
|
|
|
2017-04-14 06:20:39 +00:00
|
|
|
<NodeDropdownComponent {...NodeDropdownComponentProps}/>
|
2017-04-12 05:04:27 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|