Skip to content

Commit 61e46c7

Browse files
Merge pull request #23 from mezh-hq/fix/airplane-mode-bugs
Fix: a couple of bugs when airplane mode is enabled
2 parents f1798c7 + 00bb741 commit 61e46c7

File tree

1 file changed

+2
-2
lines changed
  • src/components/workspace/elements

1 file changed

+2
-2
lines changed

src/components/workspace/elements/seat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const Seat: React.FC<ISeatProps> = forwardRef(
5656
[sections, categoryObject]
5757
);
5858

59-
const showLabel = !airplaneMode && (consumer.options?.showSeatLabels ?? true);
59+
const showLabel = consumer.options?.showSeatLabels ?? true;
6060

6161
const consumerSeatStatusColors = consumer.styles?.elements?.seat?.statusColors;
6262

@@ -170,7 +170,7 @@ const Seat: React.FC<ISeatProps> = forwardRef(
170170
onClick={localOnClick}
171171
{...props}
172172
{...{ [dataAttributes.elementType]: undefined }}
173-
className={twMerge(props.className, "unselectable !stroke-1")}
173+
className={twMerge(props.className, "unselectable !stroke-1", airplaneMode && "hidden")}
174174
>
175175
{label}
176176
</text>

0 commit comments

Comments
 (0)