From 183312db2c97ac9885502548c80ba2725157b112 Mon Sep 17 00:00:00 2001 From: Jasper Date: Tue, 5 Nov 2024 16:55:35 -0500 Subject: [PATCH] Fixing Typescript Errors --- playbook/app/pb_kits/playbook/pb_card/_card.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playbook/app/pb_kits/playbook/pb_card/_card.tsx b/playbook/app/pb_kits/playbook/pb_card/_card.tsx index 5de39c9d61..225f40def0 100755 --- a/playbook/app/pb_kits/playbook/pb_card/_card.tsx +++ b/playbook/app/pb_kits/playbook/pb_card/_card.tsx @@ -109,8 +109,8 @@ const Card = (props: CardPropTypes): React.ReactElement => { // coerce to array const cardChildren = React.Children.toArray(children) const dynamicInlineProps = globalInlineProps(props); - const { style: htmlStyle, ...restHtmlProps } = htmlProps; - const mergedStyles = { ...htmlStyle, ...dynamicInlineProps }; + const { style: htmlStyle = {}, ...restHtmlProps } = htmlProps as { style?: React.CSSProperties }; + const mergedStyles: React.CSSProperties = { ...htmlStyle, ...dynamicInlineProps }; const subComponentTags = (tagName: string) => { @@ -135,7 +135,6 @@ const Card = (props: CardPropTypes): React.ReactElement => { -

{htmlProps}