From bf969b3ffd0a80a95a36dc59e75dccc551ec1a81 Mon Sep 17 00:00:00 2001
From: casperiv0 <53900565+casperiv0@users.noreply.github.com>
Date: Sun, 1 Oct 2023 08:53:44 +0200
Subject: [PATCH] feat: add preview
---
.../smart-motorway-sign-marker.tsx | 49 +++++++++++++++++--
1 file changed, 44 insertions(+), 5 deletions(-)
diff --git a/apps/client/src/components/dispatch/map/smart-motorway-signs/smart-motorway-sign-marker.tsx b/apps/client/src/components/dispatch/map/smart-motorway-signs/smart-motorway-sign-marker.tsx
index 7cbea439f..f84108736 100644
--- a/apps/client/src/components/dispatch/map/smart-motorway-signs/smart-motorway-sign-marker.tsx
+++ b/apps/client/src/components/dispatch/map/smart-motorway-signs/smart-motorway-sign-marker.tsx
@@ -99,9 +99,8 @@ export function SmartMotorwaySignsMarker({ marker }: Props) {
return newConfig;
})
}
- isClearable
key={idx}
- label="Lane Speed"
+ label={`Lane ${idx + 1}`}
options={SPEED_INDICATORS.map((key) => ({
textValue: t(`motorway_sign_${key}`),
label: (
@@ -121,9 +120,49 @@ export function SmartMotorwaySignsMarker({ marker }: Props) {
);
})}
-
+ Configure the lanes to see a previewPreview
+
+ {markerConfiguration.length <= 0 ? (
+