Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #127 from 21paradox/fixshowbalance
Browse files Browse the repository at this point in the history
hide switch button
  • Loading branch information
21paradox authored Apr 23, 2020
2 parents d23db3f + d333a4c commit bee7b50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function Header(props) {
<SearchBox />
</SearchBoxContainer>

<LangSelector className="network-select">
<LangSelector className="network-select" style={{ display: 'none' }}>
<div className="ui dropdown link item">
<span className="text">{i18n(`network.${network}`)}</span>
<span className="text-short">{i18n(`network-short.${network}`)}</span>
Expand Down
10 changes: 5 additions & 5 deletions src/reducers/common.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import url from 'url';
// import url from 'url';
import { UPDATE_COMMON } from '../constants';

const initState = {
Expand All @@ -10,10 +10,10 @@ const initState = {
},
};

const parsed = url.parse(window.location.href);
if (parsed.hostname === 'confluxscan.io') {
initState.network = 'mainnet';
}
// const parsed = url.parse(window.location.href);
// if (parsed.hostname === 'confluxscan.io') {
// initState.network = 'mainnet';
// }

export default (state = initState, action) => {
if (action.type === UPDATE_COMMON) {
Expand Down

0 comments on commit bee7b50

Please sign in to comment.