Skip to content

Commit 7713c13

Browse files
mfrances17mattnolting
authored andcommitted
fix(FileUpload): remove empty icon from example (patternfly#11359)
1 parent 6bc57d9 commit 7713c13

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import {
77
FormGroup,
88
HelperText,
99
HelperTextItem,
10-
DropEvent,
11-
Icon
10+
DropEvent
1211
} from '@patternfly/react-core';
1312

1413
export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
@@ -94,14 +93,7 @@ export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
9493
<FileUploadHelperText>
9594
<HelperText isLiveRegion>
9695
<HelperTextItem id="restricted-file-example-helpText" variant={isRejected ? 'error' : 'default'}>
97-
{isRejected ? (
98-
<>
99-
<Icon status="danger" />
100-
{message}
101-
</>
102-
) : (
103-
'Upload a CSV file'
104-
)}
96+
{isRejected ? message : 'Upload a CSV file'}
10597
</HelperTextItem>
10698
</HelperText>
10799
</FileUploadHelperText>

0 commit comments

Comments
 (0)