From f6aa24eb0d83f0f04e0da7cc4ffed1984fa6d794 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 16 Oct 2021 10:41:16 -0500 Subject: allow supression of Error prefix, selection of icon --- src/web/src/components/Shared/ErrorSegment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/web') diff --git a/src/web/src/components/Shared/ErrorSegment.js b/src/web/src/components/Shared/ErrorSegment.js index 7a6caa9d..43c6fabb 100644 --- a/src/web/src/components/Shared/ErrorSegment.js +++ b/src/web/src/components/Shared/ErrorSegment.js @@ -2,11 +2,11 @@ import React from 'react'; import { Segment, Header, Icon } from 'semantic-ui-react'; -const ErrorSegment = ({ icon, caption }) => ( +const ErrorSegment = ({ icon = 'x', caption, suppressPrefix = false }) => (
- - Error: {caption} + + {!suppressPrefix && "Error: "}{caption}
); -- cgit v1.2.3