From 56775b42f1afc14b630cc37f8205a7bf90c260bf Mon Sep 17 00:00:00 2001 From: reut Date: Fri, 22 Nov 2024 09:18:14 +0200 Subject: [PATCH] return street view widget --- src/components/molecules/widgets/WidgetWrapper.tsx | 11 ++++++----- src/services/data.verification/data.verification.ts | 3 +-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/molecules/widgets/WidgetWrapper.tsx b/src/components/molecules/widgets/WidgetWrapper.tsx index c17abd6a..2d5de23a 100644 --- a/src/components/molecules/widgets/WidgetWrapper.tsx +++ b/src/components/molecules/widgets/WidgetWrapper.tsx @@ -18,6 +18,7 @@ import { IWidgetAccidentCountByCarType, IWidgetInjuredAccidentsWithPedestrians, IWidgetKilledAndInjuredCountPerAgeGroup, + IWidgetStreetViewData, } from 'models/WidgetData'; import visionZeroImage from 'assets/vision_zero_2_plus_1.png'; import vision_zero_10_50_90 from 'assets/vision_zero_10_50_90.png'; @@ -43,6 +44,7 @@ import { WidgetName } from 'models/WidgetName'; import KilledAndInjuredCountPerAgeGroupWidget from './KilledAndInjuredCountPerAgeGroupWidget'; import { getInjuredBySeverityVerbLabel } from 'utils/text.utils'; import KilledAndInjuredCountPerAgeGroupStackedWidget from './KilledAndInjuredCountPerAgeGroupStackedWidget'; +import StreetViewWidget from './StreetViewWidget'; interface IProps { widget: IWidgetBase; @@ -80,11 +82,10 @@ const WidgetWrapper: FC = ({ widget, locationText, sizeOptions, editorBa widgetComponent = ; break; } - // remove street_view until fixed - // case WidgetName.street_view: { - // widgetComponent = ; - // break; - // } + case WidgetName.street_view: { + widgetComponent = ; + break; + } case WidgetName.accident_count_by_severity: { widgetComponent = ( { break; } case 'street_view': { - //temporary till fixing widget - // isValid = validCoords(items.latitude) && validCoords(items.longitude); + isValid = validCoords(items.latitude) && validCoords(items.longitude); break; } case 'most_severe_accidents': {