remove unused switch language buttons
This commit is contained in:
parent
ebb2e83925
commit
5bbd6f1463
@ -2,7 +2,6 @@ import React, { Component } from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Link, withRouter } from 'react-router-dom';
|
import { Link, withRouter } from 'react-router-dom';
|
||||||
import { Dropdown } from 'react-viewerbase';
|
import { Dropdown } from 'react-viewerbase';
|
||||||
import i18n from '@ohif/i18n';
|
|
||||||
import { withTranslation } from 'react-i18next';
|
import { withTranslation } from 'react-i18next';
|
||||||
import './Header.css';
|
import './Header.css';
|
||||||
import OHIFLogo from '../OHIFLogo/OHIFLogo.js';
|
import OHIFLogo from '../OHIFLogo/OHIFLogo.js';
|
||||||
@ -43,21 +42,13 @@ class Header extends Component {
|
|||||||
{
|
{
|
||||||
title: t('About'),
|
title: t('About'),
|
||||||
icon: {
|
icon: {
|
||||||
name: 'info'
|
name: 'info',
|
||||||
},
|
},
|
||||||
link: 'http://ohif.org',
|
link: 'http://ohif.org',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
changeLanguage(language) {
|
|
||||||
i18n.init({
|
|
||||||
fallbackLng: language.substring(0, 2),
|
|
||||||
lng: language,
|
|
||||||
});
|
|
||||||
this.loadOptions();
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
return (
|
return (
|
||||||
@ -89,30 +80,6 @@ class Header extends Component {
|
|||||||
|
|
||||||
<div className="header-menu">
|
<div className="header-menu">
|
||||||
<span className="research-use">{t('INVESTIGATIONAL USE ONLY')}</span>
|
<span className="research-use">{t('INVESTIGATIONAL USE ONLY')}</span>
|
||||||
<button
|
|
||||||
className="research-use"
|
|
||||||
onClick={() => this.changeLanguage('en-US')}
|
|
||||||
>
|
|
||||||
EN-US
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className="research-use"
|
|
||||||
onClick={() => this.changeLanguage('en-UK')}
|
|
||||||
>
|
|
||||||
EN-UK
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className="research-use"
|
|
||||||
onClick={() => this.changeLanguage('es-AR')}
|
|
||||||
>
|
|
||||||
ES-AR
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className="research-use"
|
|
||||||
onClick={() => this.changeLanguage('es-MX')}
|
|
||||||
>
|
|
||||||
ES-MX
|
|
||||||
</button>
|
|
||||||
<Dropdown title={t('Options')} list={this.options} align="right" />
|
<Dropdown title={t('Options')} list={this.options} align="right" />
|
||||||
<ConnectedUserPreferencesModal />
|
<ConnectedUserPreferencesModal />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user