Skip to content

Commit

Permalink
allow all flash messages to be dismissed by user [CV2-5462] (#2168)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianfleming authored Oct 16, 2024
1 parent d0063c8 commit 2b78280
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/app/components/FlashMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ const FlashMessageProviderWithSnackBar = withSnackbar(({ children, enqueueSnackb
content={msg}
floating
variant={variant}
onClose={persist ? () => {
closeSnackbar(key);
} : null}
onClose={() => { closeSnackbar(key); }}
/>
</div>
),
Expand All @@ -89,9 +87,7 @@ const FlashMessageProviderWithSnackBar = withSnackbar(({ children, enqueueSnackb
floating
title={<>{createFriendlyErrorMessageTitle(msg)}</>}
variant={variant}
onClose={persist ? () => {
closeSnackbar(key);
} : null}
onClose={() => { closeSnackbar(key); }}
/>
</div>
),
Expand All @@ -114,9 +110,7 @@ const FlashMessageProviderWithSnackBar = withSnackbar(({ children, enqueueSnackb
content={message}
floating
variant={variant}
onClose={persist ? () => {
closeSnackbar(key);
} : null}
onClose={() => { closeSnackbar(key); }}
/>
</div>
),
Expand Down

0 comments on commit 2b78280

Please sign in to comment.