feat(explore): Add empty state to annotations (#20160)

* feat(explore): Add empty state to annotations

* Set line height for small empty state description

* Simplify code
This commit is contained in:
Kamil Gabryjelski
2022-05-31 14:30:06 +02:00
committed by GitHub
parent c8fe518a7b
commit 0ee1f492a7
3 changed files with 38 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ const propTypes = {
placeholder: PropTypes.string,
filterOption: PropTypes.func,
tokenSeparators: PropTypes.arrayOf(PropTypes.string),
notFoundContent: PropTypes.object,
// ControlHeader props
label: PropTypes.string,
@@ -179,6 +180,7 @@ export default class SelectControl extends React.PureComponent {
showHeader,
value,
tokenSeparators,
notFoundContent,
// ControlHeader props
description,
renderTrigger,
@@ -245,6 +247,7 @@ export default class SelectControl extends React.PureComponent {
sortComparator: this.props.sortComparator,
value: getValue(),
tokenSeparators,
notFoundContent,
};
return (