From f2a0219026c4c758cd85af7125e95417dc3a4343 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 24 Apr 2024 21:55:30 +0000 Subject: [PATCH] card need to be wrappable around other components --- src/components/Card.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 9981d40..053cbae 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -3,9 +3,12 @@ import type { Theme } from "@themes/Theme"; import { cardVariants } from "@themes/Variants"; import Box from "./bases/Box"; -const Card = createRestyleComponent & BoxProps, Theme>( - [cardVariants], - Box, -); +const Card = createRestyleComponent< + VariantProps & + BoxProps & { + children: React.ReactNode; + }, + Theme +>([cardVariants], Box); export default Card; -- libgit2 0.27.1