frontend: updates EnumComponent

- replaces type with SerializedEnum from types.ts
- passing props instead of attribute directly
This commit is contained in:
Mose Müller
2024-07-08 15:09:11 +02:00
parent b1e6663c66
commit c98f191d20
3 changed files with 24 additions and 48 deletions

View File

@ -36,11 +36,11 @@ type SerializedString = SerializedObjectBase & {
type: "str";
};
type SerializedEnum = SerializedObjectBase & {
export type SerializedEnum = SerializedObjectBase & {
name: string;
value: string;
type: "Enum" | "ColouredEnum";
enum: Record<string, unknown>;
enum: Record<string, string>;
};
type SerializedList = SerializedObjectBase & {