mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
doc: add course link to site nav
This commit is contained in:
parent
8b5e08be67
commit
76cf0816dc
@ -159,11 +159,23 @@ export default class Header extends React.Component {
|
|||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
<FormattedMessage id="app.header.menu.pro" />
|
<FormattedMessage id="app.header.menu.pro" />
|
||||||
|
</a>
|
||||||
|
</Menu.Item>
|
||||||
|
{ isZhCN ? (
|
||||||
|
<Menu.Item key="course">
|
||||||
|
<a
|
||||||
|
href="https://www.yuque.com/ant-design/course"
|
||||||
|
className="header-link"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
教程
|
||||||
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 6, marginLeft: 8 }}>
|
<span style={{ display: 'inline-block', position: 'relative', top: -2, width: 6, marginLeft: 8 }}>
|
||||||
<Badge dot />
|
<Badge dot />
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</Menu.Item>
|
</Menu.Item>) : null
|
||||||
|
}
|
||||||
</Menu>,
|
</Menu>,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user