fix: remove bgcolor input from popup

This commit is contained in:
Gabe Yuan
2024-01-04 10:49:44 +08:00
parent 546a5a549b
commit c0ba654678

View File

@@ -22,7 +22,6 @@ import {
OPT_LANGS_FROM, OPT_LANGS_FROM,
OPT_LANGS_TO, OPT_LANGS_TO,
OPT_STYLE_ALL, OPT_STYLE_ALL,
OPT_STYLE_USE_COLOR,
} from "../../config"; } from "../../config";
import { sendIframeMsg } from "../../libs/iframe"; import { sendIframeMsg } from "../../libs/iframe";
import { saveRule } from "../../libs/rules"; import { saveRule } from "../../libs/rules";
@@ -130,7 +129,7 @@ export default function Popup({ setShowPopup, translator: tran }) {
); );
} }
const { transOpen, translator, fromLang, toLang, textStyle, bgColor } = rule; const { transOpen, translator, fromLang, toLang, textStyle } = rule;
return ( return (
<Box minWidth={300}> <Box minWidth={300}>
@@ -227,7 +226,7 @@ export default function Popup({ setShowPopup, translator: tran }) {
))} ))}
</TextField> </TextField>
{OPT_STYLE_USE_COLOR.includes(textStyle) && ( {/* {OPT_STYLE_USE_COLOR.includes(textStyle) && (
<TextField <TextField
size="small" size="small"
name="bgColor" name="bgColor"
@@ -235,7 +234,7 @@ export default function Popup({ setShowPopup, translator: tran }) {
label={i18n("bg_color")} label={i18n("bg_color")}
onChange={handleChange} onChange={handleChange}
/> />
)} )} */}
<Stack <Stack
direction="row" direction="row"