Skip to content

Commit

Permalink
(feat) Add isLowContrast prop to encounter deletion notifications (#1614
Browse files Browse the repository at this point in the history
)
  • Loading branch information
denniskigen committed Jan 24, 2024
1 parent f1df2be commit 0c55f93
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -139,15 +139,17 @@ const VisitTable: React.FC<VisitTableProps> = ({ showAllEncounters, visits, pati
const abortController = new AbortController();
deleteEncounter(encounterUuid, abortController)
.then(() => {
mutateVisits?.();
showSnackbar({
isLowContrast: true,
title: t('encounterDeleted', 'Encounter deleted'),
subtitle: `Encounter ${t('successfullyDeleted', 'successfully deleted')}`,
kind: 'success',
});
mutateVisits?.();
})
.catch(() => {
showSnackbar({
isLowContrast: false,
title: t('error', 'Error'),
subtitle: `Encounter ${t('failedDeleting', "couldn't be deleted")}`,
kind: 'error',
Expand Down

0 comments on commit 0c55f93

Please sign in to comment.