Skip to content

Commit

Permalink
feat(List): extend emptyPlaceholder type to ReactNode (#1013)
Browse files Browse the repository at this point in the history
Co-authored-by: Mr.Dr.Professor Patrick <[email protected]>
  • Loading branch information
DarkGenius and korvin89 authored Oct 5, 2023
1 parent 53248c9 commit 56437e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/List/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ Likewise, you can forward `onFocus` and `onBlur` if you need to repeat the behav
| filterClassName | Class for filter input styles | `String` | |
| onChangeFilter | Filter change handler (if external sorting is used). `(filter: string) => void` | `Function` | |
| onFilterEnd | Function invoked after internal filtering is completed. `({items}: {items: T[]}) => void` | `Function` | |
| emptyPlaceholder | Placeholder for an empty list. | `String` | |
| emptyPlaceholder | Placeholder for an empty list. | `React.ReactNode` | |
| sortable | Flag that enables list sorting. | `Boolean` | |
| sortHandleAlign | Sorting indicator alignment (left or right). | `left` `right` | |
| onSortEnd | Sorting event handler. `({oldIndex: number, newIndex: number}) => void` | `Function` | |
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type ListProps<T = unknown> = QAProps & {
itemClassName?: string;
itemsClassName?: string;
filterClassName?: string;
emptyPlaceholder?: string;
emptyPlaceholder?: React.ReactNode;
filterPlaceholder?: string;
filter?: string;
activeItemIndex?: number;
Expand Down

0 comments on commit 56437e6

Please sign in to comment.