mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-15 22:58:39 +01:00
frontend: updates EnumComponent
- replaces type with SerializedEnum from types.ts - passing props instead of attribute directly
This commit is contained in:
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user