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

Commit

Permalink
fix(persons): replace "No related persons" message with a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
archwheeler committed Feb 7, 2020
1 parent b0b9bb4 commit c156b5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/patients/related-persons/RelatedPersonTab.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react'
import { Button, Panel, List, ListItem } from '@hospitalrun/components'
import { Button, Panel, List, ListItem, Alert } from '@hospitalrun/components'
import NewRelatedPersonModal from 'patients/related-persons/NewRelatedPersonModal'
import RelatedPerson from 'model/RelatedPerson'
import { useTranslation } from 'react-i18next'
Expand Down Expand Up @@ -95,7 +95,7 @@ const RelatedPersonTab = (props: Props) => {
))}
</List>
) : (
<h2>No related persons have been added yet.</h2>
<Alert color="warning" title="No Related Persons" message="Add a related person using the button above." />
)) : (
<h1>Loading...</h1>
)}
Expand Down

0 comments on commit c156b5b

Please sign in to comment.