We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc57d9 commit 7713c13Copy full SHA for 7713c13
1 file changed
packages/react-core/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx
@@ -7,8 +7,7 @@ import {
7
FormGroup,
8
HelperText,
9
HelperTextItem,
10
- DropEvent,
11
- Icon
+ DropEvent
12
} from '@patternfly/react-core';
13
14
export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
@@ -94,14 +93,7 @@ export const TextFileUploadWithRestrictions: React.FunctionComponent = () => {
94
93
<FileUploadHelperText>
95
<HelperText isLiveRegion>
96
<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
- )}
+ {isRejected ? message : 'Upload a CSV file'}
105
</HelperTextItem>
106
</HelperText>
107
</FileUploadHelperText>
0 commit comments