diff --git a/apps/client/app/components/ui/card.tsx b/apps/client/app/components/ui/card.tsx index 4c05831..4e96561 100644 --- a/apps/client/app/components/ui/card.tsx +++ b/apps/client/app/components/ui/card.tsx @@ -1,17 +1,26 @@ -import * as React from "react"; +import type * as React from "react"; import { cn } from "~/lib/utils"; -function Card({ className, ...props }: React.ComponentProps<"div">) { +function Card({ className, children, ...props }: React.ComponentProps<"div">) { return (
+ > +
); } @@ -29,64 +38,31 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) { } function CardTitle({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); + return
; } function CardDescription({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); + return
; } function CardAction({ className, ...props }: React.ComponentProps<"div">) { return (
); } function CardContent({ className, ...props }: React.ComponentProps<"div">) { - return ( -
- ); + return
; } function CardFooter({ className, ...props }: React.ComponentProps<"div">) { return ( -
+
); } -export { - Card, - CardHeader, - CardFooter, - CardTitle, - CardAction, - CardDescription, - CardContent, -}; +export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };