Skip to content

Commit

Permalink
Fixing Typescript Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperfurniss committed Nov 5, 2024
1 parent 4230c67 commit 183312d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions playbook/app/pb_kits/playbook/pb_card/_card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -135,7 +135,6 @@ const Card = (props: CardPropTypes): React.ReactElement => {
<Draggable.Item dragId={dragId}
key={dragId}
>
<h1>{htmlProps}</h1>
<Tag
{...ariaProps}
{...dataProps}
Expand Down

0 comments on commit 183312d

Please sign in to comment.