Skip to content

Commit

Permalink
O3-2708 - (Fix) "Visit started" notification sticks around forever (#…
Browse files Browse the repository at this point in the history
…1569)

* refactor: add 5s timeout on visit created or updated snackbar

* fix: fix visit form tests
  • Loading branch information
usamaidrsk committed Jan 11, 2024
1 parent 0a8ebba commit f0328f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ const StartVisitForm: React.FC<StartVisitFormProps> = ({

showSnackbar({
isLowContrast: true,
timeoutInMs: 5000,
kind: 'success',
subtitle: !visitToEdit
? t('visitStartedSuccessfully', '{{visit}} started successfully', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ describe('Visit Form', () => {
subtitle: expect.stringContaining('started successfully'),
kind: 'success',
title: 'Visit started',
timeoutInMs: 5000,
});
});

Expand Down

0 comments on commit f0328f8

Please sign in to comment.