Skip to content

Commit 8f616c0

Browse files
afc163thinkasany
andauthored
fix: update menu tag labels and ordering (ant-design#56366)
Co-authored-by: thinkasany <480968828@qq.com>
1 parent 5b8fd49 commit 8f616c0

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.dumi/hooks/useMenu.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ import useLocation from './useLocation';
1212
const locales = {
1313
cn: {
1414
deprecated: '废弃',
15-
update: '更新',
15+
updated: '更新',
1616
new: '新增',
1717
},
1818
en: {
1919
deprecated: 'DEPRECATED',
20-
update: 'UPDATE',
20+
updated: 'UPDATED',
2121
new: 'NEW',
2222
},
2323
};
2424

2525
const getTagColor = (val?: string) => {
2626
switch (val?.toUpperCase()) {
27-
case 'UPDATE':
27+
case 'UPDATED':
2828
return 'processing';
2929
case 'DEPRECATED':
3030
return 'red';
31-
3231
default:
3332
return 'success';
3433
}

docs/react/llms.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
group:
33
title: AI
4+
order: 0.9
45
order: 1
56
title: LLMs.txt
67
tag: New

docs/react/llms.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
group:
33
title: AI
4+
order: 0.9
45
order: 1
56
title: LLMs.txt
67
tag: New

0 commit comments

Comments
 (0)