diff --git a/packages/js/components/changelog/add-error-boundary b/packages/js/components/changelog/add-error-boundary new file mode 100644 index 00000000000..f3251abe43b --- /dev/null +++ b/packages/js/components/changelog/add-error-boundary @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add error boundary component and fix empty content button diff --git a/packages/js/components/src/empty-content/index.js b/packages/js/components/src/empty-content/index.js index 5bcdbeb9360..72b3672861a 100644 --- a/packages/js/components/src/empty-content/index.js +++ b/packages/js/components/src/empty-content/index.js @@ -45,12 +45,13 @@ class EmptyContent extends Component { : this.props.actionCallback; const isPrimary = type === 'secondary' ? false : true; + const buttonVariant = isPrimary ? 'primary' : 'secondary'; if ( actionURL && actionCallback ) { return (