Skip to content

Commit

Permalink
fix(FileUpload): remove empty icon from example (#11359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrances17 authored Jan 6, 2025
1 parent 561f17e commit bcc2f8c
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
FormGroup,
HelperText,
HelperTextItem,
DropEvent,
Icon
DropEvent
} from '@patternfly/react-core';

export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
Expand Down Expand Up @@ -94,14 +93,7 @@ export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
<FileUploadHelperText>
<HelperText isLiveRegion>
<HelperTextItem id="restricted-file-example-helpText" variant={isRejected ? 'error' : 'default'}>
{isRejected ? (
<>
<Icon status="danger" />
{message}
</>
) : (
'Upload a CSV file'
)}
{isRejected ? message : 'Upload a CSV file'}
</HelperTextItem>
</HelperText>
</FileUploadHelperText>
Expand Down

0 comments on commit bcc2f8c

Please sign in to comment.