diff --git a/packages/core-components/src/components/EmptyState/EmptyState.stories.tsx b/packages/core-components/src/components/EmptyState/EmptyState.stories.tsx index 4d85a81719..65e9641dd0 100644 --- a/packages/core-components/src/components/EmptyState/EmptyState.stories.tsx +++ b/packages/core-components/src/components/EmptyState/EmptyState.stories.tsx @@ -77,12 +77,18 @@ export const WithAction = () => ( ); - export const CustomImage = () => (
}} + missing={{ + customImage: ( + Backstage example + ), + }} />
); diff --git a/packages/core-components/src/components/EmptyState/EmptyState.tsx b/packages/core-components/src/components/EmptyState/EmptyState.tsx index 79f54807ff..3691ffca9e 100644 --- a/packages/core-components/src/components/EmptyState/EmptyState.tsx +++ b/packages/core-components/src/components/EmptyState/EmptyState.tsx @@ -78,7 +78,11 @@ export function EmptyState(props: Props) { - {typeof missing === 'string' ? : missing.customImage} + {typeof missing === 'string' ? ( + + ) : ( + missing.customImage + )} );