Skip to content

Commit a86f6e2

Browse files
fix: use cn() for ReportDashboard className to avoid undefined class
1 parent 9d918e1 commit a86f6e2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/ReportDashboard/ReportDashboard.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import * as React from 'react';
4+
import { cn } from '../../utils/cn';
45
import { Badge } from '../Badge/Badge';
56
import { Button } from '../Button/Button';
67
import { Card, CardContent, CardHeader, CardTitle } from '../Card/Card';
@@ -149,7 +150,7 @@ export function ReportDashboard({
149150
return (
150151
<div
151152
data-slot="report-dashboard"
152-
className={`animate-pulse space-y-6 ${className}`}
153+
className={cn('animate-pulse space-y-6', className)}
153154
>
154155
<div className="h-12 w-1/3 rounded-lg bg-gray-200 dark:bg-gray-700" />
155156
<div className="grid grid-cols-2 gap-4 md:grid-cols-4">
@@ -166,7 +167,7 @@ export function ReportDashboard({
166167
}
167168

168169
return (
169-
<div data-slot="report-dashboard" className={`space-y-6 ${className}`}>
170+
<div data-slot="report-dashboard" className={cn('space-y-6', className)}>
170171
{/* Header */}
171172
<div
172173
data-slot="report-dashboard-header"

0 commit comments

Comments
 (0)