Skip to content

Commit

Permalink
site: rm Menu children (#48799)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed May 7, 2024
1 parent d3d3358 commit b96c10a
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .dumi/theme/slots/Header/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = [
{
Expand Down Expand Up @@ -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 ?? []),
Expand Down

0 comments on commit b96c10a

Please sign in to comment.