فهرست منبع

:art: formatting

visuddhinanda 3 سال پیش
والد
کامیت
18ecc73703
1فایلهای تغییر یافته به همراه26 افزوده شده و 27 حذف شده
  1. 26 27
      dashboard/src/components/general/UiLangSelect.tsx

+ 26 - 27
dashboard/src/components/general/UiLangSelect.tsx

@@ -3,35 +3,34 @@ import { GlobalOutlined } from "@ant-design/icons";
 import type { MenuProps } from "antd";
 
 const items: MenuProps["items"] = [
-	{
-		key: "en",
-		label: "English",
-	},
-	{
-		key: "zh-Hans",
-		label: "简体中文",
-	},
-	{
-		key: "zh-Hant",
-		label: "繁体中文",
-	},
+  {
+    key: "en",
+    label: "English",
+  },
+  {
+    key: "zh-Hans",
+    label: "简体中文",
+  },
+  {
+    key: "zh-Hant",
+    label: "繁体中文",
+  },
 ];
 const Widget = () => {
-	// TODO
-	return (
-		<Dropdown menu={{ items }} placement="bottomRight">
-			<Button
-				ghost
-				icon={<GlobalOutlined />}
-				onClick={(e) => {
-					console.log("click ", e);
-					e.preventDefault();
-				}}
-			>
-				简体中文
-			</Button>
-		</Dropdown>
-	);
+  // TODO
+  return (
+    <Dropdown menu={{ items }} placement="bottomRight">
+      <Button
+        ghost
+        icon={<GlobalOutlined />}
+        onClick={(e) => {
+          e.preventDefault();
+        }}
+      >
+        简体中文
+      </Button>
+    </Dropdown>
+  );
 };
 
 export default Widget;