Refactor/code reformat.

This commit is contained in:
Daniel Ternyak 2017-04-24 19:02:33 -05:00
parent fa8d2e0907
commit 5f11991b7f
2 changed files with 19 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import React, {Component} from 'react'
import {languages} from 'reducers/config'
import PropTypes from 'prop-types';
import React, {Component} from "react";
import {languages} from "reducers/config";
import PropTypes from "prop-types";
export default class LanguageDropdownComponent extends Component {
@ -35,16 +35,18 @@ export default class LanguageDropdownComponent extends Component {
{
languageToggle &&
<ul className="dropdown-menu">
{languages.map((object, i) => {
return (
<li key={i}>
<a className={i === languageSelection ? 'active' : ''}
onClick={() => changeLanguage(i)}>
{object.name}
</a>
</li>
)
})}
{
languages.map((object, i) => {
return (
<li key={i}>
<a className={i === languageSelection ? 'active' : ''}
onClick={() => changeLanguage(i)}>
{object.name}
</a>
</li>
)
})
}
<li role="separator" className="divider"/>
<li>
<a data-toggle="modal" data-target="#disclaimerModal">

View File

@ -1,6 +1,6 @@
import React, {Component} from 'react';
import {nodeList} from 'reducers/config'
import PropTypes from 'prop-types';
import React, {Component} from "react";
import {nodeList} from "reducers/config";
import PropTypes from "prop-types";
export default class NodeDropdownComponent extends Component {
@ -29,8 +29,7 @@ export default class NodeDropdownComponent extends Component {
return (
<span className="dropdown">
<a tabIndex="0"
aria-haspopup="true"
<a aria-haspopup="true"
aria-label="change node. current node ETH node by MyEtherWallet"
className="dropdown-toggle"
onClick={() => toggleNodeDropdown()}>