Skip to content

Commit ba6e19c

Browse files
committed
feat: Add action icon and context menu settings to UI
This commit reintroduces the action icon and context menu settings to the system settings UI. These settings were previously removed in a prior commit. - **Implementation:** - Adds `Select` components for both `actionIconClick` and `contextMenuClick` settings. - Uses `BetaTag` to indicate these are beta features. - Updates the UI to display and allow configuration of these settings.
1 parent 016d6d3 commit ba6e19c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Option/Settings/system-settings.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BetaTag } from "@/components/Common/Beta"
12
import { PageAssitDatabase } from "@/db"
23
import { useMessageOption } from "@/hooks/useMessageOption"
34
import {
@@ -7,6 +8,7 @@ import {
78
import { Storage } from "@plasmohq/storage"
89
import { useStorage } from "@plasmohq/storage/hook"
910
import { useQueryClient } from "@tanstack/react-query"
11+
import { Select } from "antd"
1012
import { useTranslation } from "react-i18next"
1113

1214
export const SystemSettings = () => {
@@ -41,8 +43,9 @@ export const SystemSettings = () => {
4143
</h2>
4244
<div className="border border-b border-gray-200 dark:border-gray-600 mt-3"></div>
4345
</div>
44-
{/* <div className="flex flex-row mb-3 justify-between">
46+
<div className="flex flex-row mb-3 justify-between">
4547
<span className="text-gray-700 dark:text-neutral-50 ">
48+
<BetaTag />
4649
{t("generalSettings.system.actionIcon.label")}
4750
</span>
4851
<Select
@@ -65,6 +68,7 @@ export const SystemSettings = () => {
6568
</div>
6669
<div className="flex flex-row mb-3 justify-between">
6770
<span className="text-gray-700 dark:text-neutral-50 ">
71+
<BetaTag />
6872
{t("generalSettings.system.contextMenu.label")}
6973
</span>
7074
<Select
@@ -84,7 +88,7 @@ export const SystemSettings = () => {
8488
setContextMenuClick(value)
8589
}}
8690
/>
87-
</div> */}
91+
</div>
8892
<div className="flex flex-row mb-3 justify-between">
8993
<span className="text-gray-700 dark:text-neutral-50 ">
9094
{t("generalSettings.system.export.label")}

0 commit comments

Comments
 (0)