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

Commit

Permalink
fix(patients): replace "Loading..." text with Spinner component
Browse files Browse the repository at this point in the history
  • Loading branch information
archwheeler committed Feb 9, 2020
1 parent 099e50d commit e6ce4cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@
},
"states": {
"success": "Success!",
"error": "Error!",
"loading": "Loading..."
"error": "Error!"
},
"scheduling": {
"label": "Scheduling",
Expand Down
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, Alert } from '@hospitalrun/components'
import { Button, Panel, List, ListItem, Alert, Spinner } from '@hospitalrun/components'
import NewRelatedPersonModal from 'patients/related-persons/NewRelatedPersonModal'
import RelatedPerson from 'model/RelatedPerson'
import { useTranslation } from 'react-i18next'
Expand Down Expand Up @@ -113,7 +113,7 @@ const RelatedPersonTab = (props: Props) => {
/>
)
) : (
<h1>{t('states.loading')}</h1>
<Spinner color="blue" loading size={[10, 25]} type="ScaleLoader" />
)}
</Panel>
</div>
Expand Down

0 comments on commit e6ce4cb

Please sign in to comment.