site: rm Menu children (#48799)

pull/48806/head
lijianan 9 months ago committed by GitHub
parent d3d3358ca7
commit b96c10ae1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -124,7 +124,7 @@ const HeaderNavigation: React.FC<NavigationProps> = (props) => {
activeMenuItem = 'docs/resources';
}
let additional: MenuProps['items'];
let additional: MenuProps['items'] = [];
const additionalItems: MenuProps['items'] = [
{
@ -215,30 +215,12 @@ const HeaderNavigation: React.FC<NavigationProps> = (props) => {
},
isZhCN
? {
key: 'mirror',
label: (
<a href="https://ant-design.antgroup.com" target="_blank" rel="noreferrer">
</a>
),
key: 'mirror',
children: [
{
label: (
<a href="https://ant-design.antgroup.com" target="_blank" rel="noreferrer">
</a>
),
icon: (
<img
alt="logo"
src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
width={16}
style={{ verticalAlign: 'text-bottom' }}
/>
),
key: 'antgroup',
},
],
}
: null,
...(additional ?? []),

Loading…
Cancel
Save