mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
docs: adjust version order (#22727)
This commit is contained in:
parent
e719440307
commit
24ae9ebd1e
@ -173,7 +173,7 @@ class Header extends React.Component<HeaderProps, HeaderState> {
|
||||
themeConfig,
|
||||
intl: { locale },
|
||||
} = this.props;
|
||||
const docVersions = { ...themeConfig.docVersions, [antdVersion]: antdVersion };
|
||||
const docVersions = { [antdVersion]: antdVersion, ...themeConfig.docVersions };
|
||||
const versionOptions = Object.keys(docVersions).map(version => (
|
||||
<Option value={docVersions[version]} key={version}>
|
||||
{version}
|
||||
|
Loading…
Reference in New Issue
Block a user