Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat: added label for visualize and fixed title
Browse files Browse the repository at this point in the history
  • Loading branch information
yosephAHMED committed Aug 31, 2020
1 parent bb4b9fb commit e06fbc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/incidents/visualize/VisualizeIncidents.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { LineGraph, Spinner } from '@hospitalrun/components'
import React, { useEffect, useState } from 'react'

import useTitle from '../../page-header/title/useTitle'
import useTranslator from '../../shared/hooks/useTranslator'
import useIncidents from '../hooks/useIncidents'
import IncidentFilter from '../IncidentFilter'
import IncidentSearchRequest from '../model/IncidentSearchRequest'

const VisualizeIncidents = () => {
const { t } = useTranslator()
useTitle(t('incidents.visualize.view'))
const searchFilter = IncidentFilter.reported
const searchRequest: IncidentSearchRequest = { status: searchFilter }
const { data, isLoading } = useIncidents(searchRequest)
Expand Down
4 changes: 4 additions & 0 deletions src/shared/locales/enUs/translations/incidents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ export default {
descriptionRequired: 'Description is required',
},
},
visualize: {
label: 'Visualize',
view: 'Visualize Incidents',
},
},
}

0 comments on commit e06fbc3

Please # to comment.