소스 검색

add more menu

visuddhinanda 3 년 전
부모
커밋
1c90716305
1개의 변경된 파일23개의 추가작업 그리고 1개의 파일을 삭제
  1. 23 1
      dashboard/src/components/library/HeadBar.tsx

+ 23 - 1
dashboard/src/components/library/HeadBar.tsx

@@ -1,5 +1,5 @@
 import { Link } from "react-router-dom";
-import { Layout } from 'antd';
+import { Layout, Space } from 'antd';
 import { useIntl } from "react-intl";
 import type { MenuProps } from 'antd';
 import { Menu } from 'antd';
@@ -40,6 +40,28 @@ const Widget = ({selectedKeys = ''}: IWidgetHeadBar) => {
 			label: (<a href = "https://asset-hk.wikipali.org/help/zh-Hans" target="_blank" rel="noreferrer">{intl.formatMessage({ id: "columns.library.help.title" })}</a>),
 			key: 'help',
 		},
+		{
+			label: (<Space>{intl.formatMessage({ id: "columns.library.more.title" })}</Space>),
+			key: 'more',
+			children: [
+				{ 
+					label: (<a href = "https://asset-hk.wikipali.org/handbook/zh-Hans" target="_blank" rel="noreferrer">{intl.formatMessage({ id: "columns.library.palihandbook.title" })}</a>),
+					key: 'palihandbook',
+				},
+				{ 
+					label: (<Link to = "/calendar">{intl.formatMessage({ id: "columns.library.calendar.title" })}</Link>),
+					key: 'calendar', 
+				},
+				{ 
+					label: (<Link to = "/convertor">{intl.formatMessage({ id: "columns.library.convertor.title" })}</Link>),
+					key: 'convertor', 
+				},
+				{ 
+					label: (<Link to = "/statistics">{intl.formatMessage({ id: "columns.library.statistics.title" })}</Link>),
+					key: 'statistics', 
+				},
+			],
+		},
 	];
   return (
 	<Layout>