aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-24 00:41:53 +0800
committercrupest <crupest@outlook.com>2023-07-24 00:41:53 +0800
commitae48ac24c5533653f1e1f1e6d2a33e0238222297 (patch)
treefe25c677bbd8f6cdc2f6abfc9b4bbb7f2bb47ff6 /FrontEnd/src/views
parentc7934c59cb17a4266ea882cdb40be79f22043d10 (diff)
downloadtimeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.tar.gz
timeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.tar.bz2
timeline-ae48ac24c5533653f1e1f1e6d2a33e0238222297.zip
...
Diffstat (limited to 'FrontEnd/src/views')
-rw-r--r--FrontEnd/src/views/common/input/InputPanel.tsx12
-rw-r--r--FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx6
2 files changed, 1 insertions, 17 deletions
diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx
index 27937a05..e0db3787 100644
--- a/FrontEnd/src/views/common/input/InputPanel.tsx
+++ b/FrontEnd/src/views/common/input/InputPanel.tsx
@@ -31,23 +31,13 @@ export interface SelectInput {
options: SelectInputOption[];
}
-export interface ColorInput {
- type: "color";
- label?: I18nText;
-}
-
export interface DateTimeInput {
type: "datetime";
label?: I18nText;
helper?: I18nText;
}
-export type Input =
- | TextInput
- | BoolInput
- | SelectInput
- | ColorInput
- | DateTimeInput;
+export type Input = TextInput | BoolInput | SelectInput | DateTimeInput;
interface InputTypeToValueTypeMap {
text: string;
diff --git a/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx b/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
index 63750445..bd5bef4c 100644
--- a/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
+++ b/FrontEnd/src/views/timeline/TimelinePropertyChangeDialog.tsx
@@ -52,12 +52,6 @@ const TimelinePropertyChangeDialog: React.FC<
label: "timeline.dialogChangeProperty.description",
initValue: timeline.description,
},
- {
- type: "color",
- label: "timeline.dialogChangeProperty.color",
- initValue: timeline.color ?? null,
- canBeNull: true,
- },
] as const
}
open={props.open}