From 74414b9b6ead93fd9b721cd45a1403a2d1557d24 Mon Sep 17 00:00:00 2001 From: Anamika T S Date: Fri, 20 Dec 2024 15:29:55 +0530 Subject: [PATCH] fix(EmptyState): giving defaults to headingAs in all variants --- .../components/EmptyStates/ErrorEmptyState/ErrorEmptyState.tsx | 2 +- .../EmptyStates/NoDataEmptyState/NoDataEmptyState.tsx | 2 +- .../EmptyStates/NoTagsEmptyState/NoTagsEmptyState.tsx | 2 +- .../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx | 2 +- .../NotificationsEmptyState/NotificationsEmptyState.tsx | 2 +- .../UnauthorizedEmptyState/UnauthorizedEmptyState.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ibm-products/src/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.tsx index 2629c5c301..3724ee6890 100644 --- a/packages/ibm-products/src/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.tsx @@ -106,7 +106,7 @@ export let ErrorEmptyState = React.forwardRef< illustrationTheme, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title, diff --git a/packages/ibm-products/src/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.tsx index 9b11e0939d..1c61549b4a 100644 --- a/packages/ibm-products/src/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.tsx @@ -106,7 +106,7 @@ export let NoDataEmptyState = React.forwardRef< illustrationDescription, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title, diff --git a/packages/ibm-products/src/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.tsx index 91fc51af0d..d34ff4e8c1 100644 --- a/packages/ibm-products/src/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.tsx @@ -107,7 +107,7 @@ export let NoTagsEmptyState = React.forwardRef< illustrationDescription, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title, diff --git a/packages/ibm-products/src/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx index 55cfb50195..c32c08bd7d 100644 --- a/packages/ibm-products/src/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.tsx @@ -106,7 +106,7 @@ export let NotFoundEmptyState = React.forwardRef< illustrationDescription, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title, diff --git a/packages/ibm-products/src/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.tsx index 619d50a4fc..e2a4a98a3b 100644 --- a/packages/ibm-products/src/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.tsx @@ -108,7 +108,7 @@ export let NotificationsEmptyState = React.forwardRef< illustrationDescription, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title, diff --git a/packages/ibm-products/src/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.tsx b/packages/ibm-products/src/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.tsx index cf573453f1..f1008b03ca 100644 --- a/packages/ibm-products/src/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.tsx +++ b/packages/ibm-products/src/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.tsx @@ -105,7 +105,7 @@ export let UnauthorizedEmptyState = React.forwardRef< illustrationDescription, link, size = defaults.size, - headingAs, + headingAs = defaults.headingAs, subtitle, title,