From c646557df7877163849cb3ebda63e69d9b5549dd Mon Sep 17 00:00:00 2001 From: Akalanka Perera Date: Tue, 2 Apr 2024 21:46:32 +0530 Subject: [PATCH] Feat: added support for extending seat icon styles --- src/components/workspace/elements/seat.tsx | 2 ++ src/types/styles.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/workspace/elements/seat.tsx b/src/components/workspace/elements/seat.tsx index b71dd74..96c9e07 100644 --- a/src/components/workspace/elements/seat.tsx +++ b/src/components/workspace/elements/seat.tsx @@ -122,6 +122,8 @@ const Seat: React.FC = forwardRef( width={seatSize * 0.75} height={seatSize * 0.75} size={seatSize * 0.75} + className={consumer.styles?.elements?.seat?.icon?.className} + style={consumer.styles?.elements?.seat?.icon?.properties} /> )} {label && showLabel && !SeatIcon && ( diff --git a/src/types/styles.ts b/src/types/styles.ts index c41a2d3..74f689b 100644 --- a/src/types/styles.ts +++ b/src/types/styles.ts @@ -60,6 +60,7 @@ export interface IStyles { selected?: IStyle; unselected?: IStyle; base?: IStyle; + icon?: IStyle; statusColors?: { [key: string]: { background?: string;