site: hide language changer online

This commit is contained in:
Benjy Cui 2016-05-13 11:38:35 +08:00
parent 8842d9342a
commit 15b7c51013

View File

@ -146,9 +146,13 @@ export default class Header extends React.Component {
{options}
</Select>
</div>
<Button id="lang" type="ghost" size="small" onClick={this.handleLangChange}>
<FormattedMessage id="app.header.lang" />
</Button>
{
location.port ? (
<Button id="lang" type="ghost" size="small" onClick={this.handleLangChange}>
<FormattedMessage id="app.header.lang" />
</Button>
) : null
}
<Menu mode={this.state.menuMode} selectedKeys={[activeMenuItem]} id="nav">
<Menu.Item key="home">
<Link to="/">