diff --git a/src/components/molecules/widgets/AccidentCountByRoadLight.tsx b/src/components/molecules/widgets/AccidentCountByRoadLight.tsx index 2cb99bc6..c85dcf29 100644 --- a/src/components/molecules/widgets/AccidentCountByRoadLight.tsx +++ b/src/components/molecules/widgets/AccidentCountByRoadLight.tsx @@ -1,24 +1,12 @@ import React, { FC } from 'react'; import { IWidgetAccidentCountByRoadLight } from 'models/WidgetData'; -import PieChartView from 'components/molecules/PieChartView'; -const ROAD_LIGHT = 'road_light'; -const COUNT = 'count'; -const INNER_RADIUS = '40%'; -const OUTER_RADIUS = '70%'; interface IProps { data: IWidgetAccidentCountByRoadLight; + segmentText: string; } -const AccidentCountByRoadLight: FC = ({ data }) => { - return ( - - ); +const AccidentCountByRoadLight: FC = () => { + return
{}
; }; -export default AccidentCountByRoadLight; \ No newline at end of file +export default AccidentCountByRoadLight; diff --git a/src/components/molecules/widgets/WidgetWrapper.tsx b/src/components/molecules/widgets/WidgetWrapper.tsx index e0666ce3..2d5de23a 100644 --- a/src/components/molecules/widgets/WidgetWrapper.tsx +++ b/src/components/molecules/widgets/WidgetWrapper.tsx @@ -199,7 +199,9 @@ const WidgetWrapper: FC = ({ widget, locationText, sizeOptions, editorBa break; } case WidgetName.accident_count_by_road_light: { - widgetComponent = ; + widgetComponent = ( + + ); break; } case WidgetName.accident_count_by_driver_type: { diff --git a/src/models/WidgetData.ts b/src/models/WidgetData.ts index 9a14117a..a2b1ea99 100644 --- a/src/models/WidgetData.ts +++ b/src/models/WidgetData.ts @@ -157,10 +157,7 @@ export interface IWidgetTopRoadSegmentsAccidentsPerKm extends IWidgetDataBase { items: {}[]; } export interface IWidgetAccidentCountByRoadLight extends IWidgetDataBase { - items: { - count: number; - road_light: string; - }[]; + items: {}[]; } export interface IWidgetAccidentCountByDriverType extends IWidgetDataBase { items: {