use cn
This commit is contained in:
@@ -5,6 +5,7 @@ import { uniq } from 'lodash';
|
||||
|
||||
import { Calendar } from '@kit/ui/shadcn/calendar';
|
||||
import { Card } from '@kit/ui/shadcn/card';
|
||||
import { cn } from '@kit/ui/utils';
|
||||
|
||||
import { useBooking } from './booking.provider';
|
||||
|
||||
@@ -29,9 +30,9 @@ export default function BookingCalendar() {
|
||||
)
|
||||
);
|
||||
}}
|
||||
className="rounded-md border"
|
||||
{...(isLoadingTimeSlots && {
|
||||
className: 'rounded-md border opacity-50 pointer-events-none',
|
||||
className={cn('rounded-md border', {
|
||||
'pointer-events-none rounded-md border opacity-50':
|
||||
isLoadingTimeSlots,
|
||||
})}
|
||||
/>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user