diff --git a/packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx b/packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx index a942654f600..c32904f687f 100644 --- a/packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx +++ b/packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx @@ -7,8 +7,7 @@ import { FormGroup, HelperText, HelperTextItem, - DropEvent, - Icon + DropEvent } from '@patternfly/react-core'; export const TextFileUploadWithRestrictions: React.FunctionComponent = () => { @@ -94,14 +93,7 @@ export const TextFileUploadWithRestrictions: React.FunctionComponent = () => { - {isRejected ? ( - <> - - {message} - - ) : ( - 'Upload a CSV file' - )} + {isRejected ? message : 'Upload a CSV file'}