From 270e0619e8307e82049c866db4aa285535613c44 Mon Sep 17 00:00:00 2001 From: mfrances Date: Wed, 18 Dec 2024 15:45:43 -0500 Subject: [PATCH] fix(FileUpload): remove empty icon from example --- .../examples/FileUploadTextWithRestrictions.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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'}