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} {options}
</Select> </Select>
</div> </div>
{
location.port ? (
<Button id="lang" type="ghost" size="small" onClick={this.handleLangChange}> <Button id="lang" type="ghost" size="small" onClick={this.handleLangChange}>
<FormattedMessage id="app.header.lang" /> <FormattedMessage id="app.header.lang" />
</Button> </Button>
) : null
}
<Menu mode={this.state.menuMode} selectedKeys={[activeMenuItem]} id="nav"> <Menu mode={this.state.menuMode} selectedKeys={[activeMenuItem]} id="nav">
<Menu.Item key="home"> <Menu.Item key="home">
<Link to="/"> <Link to="/">