We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5bb7d commit ac08cefCopy full SHA for ac08cef
packages/module/src/ServiceCard/ServiceCard.tsx
@@ -8,8 +8,8 @@ import clsx from 'clsx';
8
export interface ServiceCardProps extends CardProps {
9
/** Service card title */
10
title: string;
11
- /** Service card subtitle */
12
- subtitle: string;
+ /** Optional Service card subtitle */
+ subtitle?: string;
13
/** Service card description */
14
description: string;
15
/** Service card icon */
@@ -60,7 +60,7 @@ const ServiceCard: React.FunctionComponent<ServiceCardProps> = ({
60
<FlexItem>
61
<TextContent>
62
<Text component={TextVariants.h2} ouiaId={`${ouiaId}-title`}>{title}</Text>
63
- {subtitle}
+ {subtitle ? subtitle : null}
64
</TextContent>
65
</FlexItem>
66
</Flex>
0 commit comments