// @flow import React, { Component } from 'react'; import Navigation from './components/Navigation'; import GasPriceDropdown from './components/GasPriceDropdown'; import { Link } from 'react-router'; import { Dropdown } from 'components/ui'; import { languages, NODES, VERSION, ANNOUNCEMENT_TYPE, ANNOUNCEMENT_MESSAGE } from '../../config/data'; import logo from 'assets/images/logo-myetherwallet.svg'; import './index.scss'; export default class Header extends Component { props: { location: {}, languageSelection: string, nodeSelection: string, gasPriceGwei: number, changeLanguage: (sign: string) => any, changeNode: (key: string) => any, changeGasPrice: (price: number) => any }; render() { const { languageSelection, changeNode, nodeSelection } = this.props; const selectedLanguage = languages.find(l => l.sign === languageSelection) || languages[0]; const selectedNode = NODES[nodeSelection]; return (
{ANNOUNCEMENT_MESSAGE &&
}
{/* TODO - don't hardcode image path*/} MyEtherWallet
Open-Source & Client-Side Ether Wallet ยท v{VERSION} o.name} value={selectedLanguage} extra={[
  • ,
  • Disclaimer
  • ]} onChange={this.changeLanguage} /> [ NODES[o].network, ' ', ({NODES[o].service}) ]} value={nodeSelection} extra={
  • {}}>Add Custom Node
  • } onChange={changeNode} />
    ); } changeLanguage = (value: { sign: string }) => { this.props.changeLanguage(value.sign); }; }