From bcc2f8c9077ed4def6f8051f824d3fdc12078c8b Mon Sep 17 00:00:00 2001 From: Mark Franceschelli <39063664+mfrances17@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:54:56 -0500 Subject: [PATCH] fix(FileUpload): remove empty icon from example (#11359) --- .../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'}