Commit 323eb459 authored by 2breakegg's avatar 2breakegg

change language 按钮位置

parent 9f623290
This diff is collapsed.
......@@ -182,17 +182,6 @@ function Index({ children, messages, dispatch }) {
</div>
</Menu.Item>) : ('')
}
<Menu.Item key="2">
<Dropdown overlay={menu} trigger={['click']}>
{language === 'en-US' ?
<a className="ant-dropdown-link changelanguage" href="#">
&nbsp;English <Icon type="down" className="flag"/>
</a> : <a className="ant-dropdown-link changelanguage" href="#">
&nbsp;中文 <Icon type="down" className="flag"/>
</a>
}
</Dropdown>
</Menu.Item>
</Menu>
</Header>
......@@ -205,7 +194,16 @@ function Index({ children, messages, dispatch }) {
/>
{children}
<Footer style={{ width: '100%' }}>
<Footer style={{ width: '100%', justifyContent: 'space-between', display: 'flex', zIndex: 100 }}>
<div><Dropdown overlay={menu} trigger={['click']}>
{language === 'en-US' ?
<a className="ant-dropdown-link changelanguage" href="#">
&nbsp;English <Icon type="down" className="flag"/>
</a> : <a className="ant-dropdown-link changelanguage" href="#">
&nbsp;中文 <Icon type="down" className="flag"/>
</a>
}
</Dropdown></div>
<div>© MoeCube 2017 all right reserved.</div>
</Footer>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment