Add buttons back (#1505)

* Add buttons back

* Fix buttons in Collection instead

* Remove unneeded buttons from CardGrid
This commit is contained in:
Logan Saether 2019-08-16 14:48:40 +02:00 committed by Jaco Greeff
parent 7e1bdd4dce
commit 00c95baf89

View File

@ -79,7 +79,7 @@ export default class Collection<P extends CollectionProps, S extends CollectionS
protected renderHeader (): React.ReactNode {
const { buttons, headerText } = this.props;
if (!headerText) {
if (!headerText && !buttons) {
return null;
}