From 7cc66ebe530e2449e6ae6e733a600d5b6881d2a7 Mon Sep 17 00:00:00 2001 From: Yoseph Ahmed Date: Sun, 16 Aug 2020 12:44:33 -0400 Subject: [PATCH] feat: imported LineGraph component and rendered it with dumby data --- .../visualize/VisualizeIncidents.tsx | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/src/incidents/visualize/VisualizeIncidents.tsx b/src/incidents/visualize/VisualizeIncidents.tsx index 3ef5892c75..5ee8b32097 100644 --- a/src/incidents/visualize/VisualizeIncidents.tsx +++ b/src/incidents/visualize/VisualizeIncidents.tsx @@ -1,4 +1,4 @@ -import { Spinner } from '@hospitalrun/components' +import { Spinner, LineGraph } from '@hospitalrun/components' import React from 'react' import useIncidents from '../hooks/useIncidents' @@ -14,10 +14,48 @@ const VisualizeIncidents = () => { return } + // reportedOn: "2020-08-12T19:53:30.153Z" + // we can use a function that splices the string at position 6-7 to get the month + console.log('data: ', data) return ( <> -

Hello from Visualize Incidents

+ ) }