From 504659a7832628e731adea74cd5f72ce95784145 Mon Sep 17 00:00:00 2001 From: ReutSher1 <46990593+ReutSher1@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:04:43 +0200 Subject: [PATCH] return street view widget (#1170) --- 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 15a6ecb9..e0666ce3 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': {