Skip to content

Commit

Permalink
fix(listheader): title is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Stone committed Nov 24, 2020
1 parent f208795 commit e33c840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/List/ListHeader/ListHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { settings } from '../../../constants/Settings';
const { iotPrefix } = settings;

const propTypes = {
title: PropTypes.string.isRequired,
title: PropTypes.string,
buttons: PropTypes.arrayOf(PropTypes.node),
search: PropTypes.shape({
onChange: PropTypes.func,
Expand All @@ -29,6 +29,7 @@ const defaultProps = {
i18n: {
searchPlaceHolderText: 'Enter a value',
},
title: null,
};

const ListHeader = ({ title, buttons, search, i18n, isLoading }) => {
Expand Down

0 comments on commit e33c840

Please sign in to comment.