diff options
Diffstat (limited to 'FrontEnd/src/app/views/common/OperationDialog.tsx')
-rw-r--r-- | FrontEnd/src/app/views/common/OperationDialog.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/FrontEnd/src/app/views/common/OperationDialog.tsx b/FrontEnd/src/app/views/common/OperationDialog.tsx index 6a5228f9..40c14e9e 100644 --- a/FrontEnd/src/app/views/common/OperationDialog.tsx +++ b/FrontEnd/src/app/views/common/OperationDialog.tsx @@ -1,7 +1,7 @@ import React, { useState } from "react"; import { useTranslation } from "react-i18next"; import { Form, Button, Modal } from "react-bootstrap"; -import { ChromePicker } from "react-color"; +import { TwitterPicker } from "react-color"; import { convertI18nText, I18nText, UiLogicError } from "@/common"; @@ -63,7 +63,6 @@ export interface OperationDialogColorInput { type: "color"; label?: I18nText; initValue?: string | null; - disableAlpha?: boolean; canBeNull?: boolean; } @@ -336,10 +335,9 @@ const OperationDialog = < <Form.Label>{convertI18nText(item.label, t)}</Form.Label> )} {value !== null && ( - <ChromePicker + <TwitterPicker color={value as string} onChange={(result) => updateValue(index, result.hex)} - disableAlpha={item.disableAlpha} /> )} </Form.Group> |