From 61fbc7a3abe8053643535f85a690abaf28d76150 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 11 Feb 2025 18:44:42 +0300 Subject: [PATCH] use Loading spinner in slots list --- .../schedule/time-slots/components/slots-list.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/web/components/schedule/time-slots/components/slots-list.tsx b/apps/web/components/schedule/time-slots/components/slots-list.tsx index c838e10..7006bf4 100644 --- a/apps/web/components/schedule/time-slots/components/slots-list.tsx +++ b/apps/web/components/schedule/time-slots/components/slots-list.tsx @@ -1,17 +1,12 @@ 'use client'; import { SlotCard } from './slot-card'; +import { LoadingSpinner } from '@/components/common/spinner'; import { useSlots } from '@/hooks/slots'; -import { Loader } from 'lucide-react'; export function SlotsList() { const { data: slots, isLoading } = useSlots(); - if (isLoading) - return ( -
- -
- ); + if (isLoading) return ; return (