Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit df56977

Browse files
committed
Refactor SimpleCard component to accept a className prop
1 parent 57406f6 commit df56977

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dashboard/components/domain/simple-card.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import React from "react";
22
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "../ui/card";
3+
import { cn } from "@/lib/utils";
34

4-
export function SimpleCard({ children, title, description }: {
5+
export function SimpleCard({ children, title, description, className }: {
56
children: React.ReactNode
67
title: React.ReactNode
78
description?: React.ReactNode
9+
className?: string
810
}) {
9-
return <Card className="flex flex-col">
11+
return <Card className={cn("flex flex-col", className)}>
1012
<CardHeader className="w-full">
11-
<CardTitle>
13+
<CardTitle className="text-base font-semibold lg:text-xl lg:font-bold">
1214
{title}
1315
</CardTitle>
1416
{description && <CardDescription>

0 commit comments

Comments
 (0)