Skip to content

Commit

Permalink
replace box with div for extra
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Jun 10, 2024
1 parent 708484d commit 14f022c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ const CardContent: React.FC<CardContentProps> = ({
</Text2>
</div>
)}
{extra && <Box ref={extraRef}>{extra}</Box>}
{extra && <div ref={extraRef}>{extra}</div>}
</div>

{(button || buttonLink) && (
Expand Down Expand Up @@ -817,7 +817,7 @@ export const SmallNakedCard = React.forwardRef<HTMLDivElement, SmallNakedCardPro
)}
</Stack>
</div>
{extra && <Box ref={extraRef}>{extra}</Box>}
{extra && <div ref={extraRef}>{extra}</div>}
</div>
</div>
</BaseTouchable>
Expand Down Expand Up @@ -951,7 +951,7 @@ export const DataCard = React.forwardRef<HTMLDivElement, DataCardProps>(
)}
</Inline>

{extra && <Box ref={extraRef}>{extra}</Box>}
{extra && <div ref={extraRef}>{extra}</div>}

{(button || buttonLink) && (
<div className={styles.actions}>
Expand Down Expand Up @@ -1079,7 +1079,7 @@ export const SnapCard = React.forwardRef<HTMLDivElement, SnapCardProps>(
)}
</Stack>
</div>
{extra && <Box ref={extraRef}>{extra}</Box>}
{extra && <div ref={extraRef}>{extra}</div>}
</section>
</BaseTouchable>
</Boxed>
Expand Down Expand Up @@ -1133,7 +1133,7 @@ const DisplayCardContent: React.FC<DisplayCardContentProps> = ({
{description}
</div>
)}
{extra && <Box ref={extraRef}>{extra}</Box>}
{extra && <div ref={extraRef}>{extra}</div>}
</div>
);
};
Expand Down

0 comments on commit 14f022c

Please sign in to comment.