Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev into master #976

Merged
merged 19 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/vision_zero_10_50_90.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/molecules/widgets/WidgetWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
IWidgetKilledAndInjuredCountPerAgeGroup,
} from 'models/WidgetData';
import visionZeroImage from 'assets/vision_zero_2_plus_1.jpg';
import vision_10_30_90 from 'assets/vision_10_30_90.png';
import vision_zero_10_50_90 from 'assets/vision_zero_10_50_90.png';
import AccidentsCountByHourBarWidget from './AccidentsCountByHourBarWidget';
import MostSevereAccidentsMapWidget from './MostSevereAccidentsMapWidget';
import MostSevereAccidentsTableWidget from './MostSevereAccidentsTableWidget';
Expand Down Expand Up @@ -175,11 +175,11 @@ const WidgetWrapper: FC<IProps> = ({ widget, locationText, sizeOptions, editorBa
widgetComponent = <StaticImageViewWidget data={{items:{image_src:visionZeroImage},text:{}} as IWidgetVisionZeroImageData} />;
break;
}
case WidgetName.vision_zero_10_30_90: {
widgetComponent = <StaticImageViewWidget data={{items:{image_src:vision_10_30_90},text:{}} as IWidgetVisionZeroImageData} />;
case WidgetName.vision_zero_10_50_90: {
widgetComponent = <StaticImageViewWidget data={{items:{image_src:vision_zero_10_50_90},text:{}} as IWidgetVisionZeroImageData} />;

break;
}

case WidgetName.top_road_segments_accidents_per_km: {
widgetComponent = (
<TopRoadSegmentsAccidentsPerKm data={data as IWidgetTopRoadSegmentsAccidentsPerKm} segmentText={locationText} />
Expand Down
2 changes: 1 addition & 1 deletion src/models/WidgetName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export enum WidgetName {
head_on_collisions_comparison = 'head_on_collisions_comparison',
head_on_collisions_comparison_percentage = 'head_on_collisions_comparison_percentage',
vision_zero_2_plus_1 = 'vision_zero_2_plus_1',
vision_zero_10_30_90 = 'vision_zero_10_30_90',
vision_zero_10_50_90 = 'vision_zero_10_50_90',
top_road_segments_accidents_per_km = 'top_road_segments_accidents_per_km',
accident_count_by_road_light = 'accident_count_by_road_light',
accident_count_by_driver_type = 'accident_count_by_driver_type',
Expand Down