Skip to content

Commit ac08cef

Browse files
authored
make subtitle prop optional (#261)
1 parent ed5bb7d commit ac08cef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/module/src/ServiceCard/ServiceCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import clsx from 'clsx';
88
export interface ServiceCardProps extends CardProps {
99
/** Service card title */
1010
title: string;
11-
/** Service card subtitle */
12-
subtitle: string;
11+
/** Optional Service card subtitle */
12+
subtitle?: string;
1313
/** Service card description */
1414
description: string;
1515
/** Service card icon */
@@ -60,7 +60,7 @@ const ServiceCard: React.FunctionComponent<ServiceCardProps> = ({
6060
<FlexItem>
6161
<TextContent>
6262
<Text component={TextVariants.h2} ouiaId={`${ouiaId}-title`}>{title}</Text>
63-
{subtitle}
63+
{subtitle ? subtitle : null}
6464
</TextContent>
6565
</FlexItem>
6666
</Flex>

0 commit comments

Comments
 (0)