Skip to content

Commit 96d7a23

Browse files
author
Eric Olkowski
committed
Verbiage changes to sub-component descriptions
1 parent 48c16a8 commit 96d7a23

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

packages/react-core/src/components/MultipleFileUpload/MultipleFileUpload.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import Dropzone, { DropzoneProps, DropFileEventHandler } from 'react-dropzone';
33
import styles from '@patternfly/react-styles/css/components/MultipleFileUpload/multiple-file-upload';
44
import { css } from '@patternfly/react-styles';
55

6-
/** Acts as a container for all other MultipleFileUpload sub-components.
7-
* Logic for the callback that gets called when a file is uploaded can also
8-
* be passed into this sub-component.
6+
/** Acts as a container for all other MultipleFileUpload sub-components. This sub-component
7+
* also provides the functionality for file uploads, and access to the uploaded files via
8+
* a callback.
99
*/
10+
1011
export interface MultipleFileUploadProps extends Omit<React.HTMLProps<HTMLDivElement>, 'value'> {
1112
/** Content rendered inside the multi upload field */
1213
children?: React.ReactNode;

packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatusItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import { Button } from '../Button';
66
import FileIcon from '@patternfly/react-icons/dist/esm/icons/file-icon';
77
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
88

9-
/** Renders a progress bar for each individual file that has been attempted to be uploaded,
10-
* including the file name, file type, file size, and upload status. Each status item also
11-
* has a "remove" button to remove individual items from the status list.
9+
/** Automatically reads an uploaded file to render a visual representation of it, including
10+
* its name, size, and read status. This sub-component also allows custom reading of files
11+
* via various callbacks which will override the automatic reading behavior.
1212
*/
1313

1414
export interface MultipleFileUploadStatusItemProps extends React.HTMLProps<HTMLLIElement> {

0 commit comments

Comments
 (0)