Refactor/code reformat.
This commit is contained in:
parent
fa8d2e0907
commit
5f11991b7f
|
@ -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,7 +35,8 @@ export default class LanguageDropdownComponent extends Component {
|
|||
{
|
||||
languageToggle &&
|
||||
<ul className="dropdown-menu">
|
||||
{languages.map((object, i) => {
|
||||
{
|
||||
languages.map((object, i) => {
|
||||
return (
|
||||
<li key={i}>
|
||||
<a className={i === languageSelection ? 'active' : ''}
|
||||
|
@ -44,7 +45,8 @@ export default class LanguageDropdownComponent extends Component {
|
|||
</a>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
})
|
||||
}
|
||||
<li role="separator" className="divider"/>
|
||||
<li>
|
||||
<a data-toggle="modal" data-target="#disclaimerModal">
|
||||
|
|
|
@ -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()}>
|
||||
|
|
Loading…
Reference in New Issue