44 CardHeader ,
55 CardTitle ,
66} from "@/shared/components/ui/card" ;
7- import {
8- Button } from "@/shared/components/ui/button" ;
7+ import { Button } from "@/shared/components/ui/button" ;
98import { Badge } from "@/shared/components/ui/badge" ;
109import {
1110 Pagination ,
@@ -153,7 +152,7 @@ const EventsGrid = memo(
153152 } }
154153 >
155154 < Card
156- className = { `border-none rounded-xl shadow-none relative p-0 hover:shadow-lg gap-0 h-full ${
155+ className = { `border-none rounded-xl shadow-none relative p-0 hover:shadow-lg dark:hover:shadow-gray-700 gap-0 h-full ${
157156 isSelectMode ? "cursor-pointer" : ""
158157 } ${ isSelected ? "ring-2 ring-blue-500" : "" } `}
159158 onMouseDown = { ( ) =>
@@ -308,7 +307,7 @@ const EventsGrid = memo(
308307 { ( ( ) => {
309308 const pages = [ ] ;
310309 const showEllipsis = totalPages > 7 ;
311-
310+
312311 if ( showEllipsis ) {
313312 // Show first 3 pages
314313 for ( let i = 1 ; i <= 3 ; i ++ ) {
@@ -317,14 +316,13 @@ const EventsGrid = memo(
317316 < PaginationLink
318317 onMouseDown = { ( ) => handlePageChange ( i ) }
319318 isActive = { currentPage === i }
320- className = "cursor-pointer"
321319 >
322320 { i }
323321 </ PaginationLink >
324322 </ PaginationItem >
325323 ) ;
326324 }
327-
325+
328326 // Show ellipsis if current page is far from start
329327 if ( currentPage > 5 ) {
330328 pages . push (
@@ -333,27 +331,26 @@ const EventsGrid = memo(
333331 </ PaginationItem >
334332 ) ;
335333 }
336-
334+
337335 // Show current page and surrounding pages
338336 const start = Math . max ( 4 , currentPage - 1 ) ;
339337 const end = Math . min ( totalPages - 2 , currentPage + 1 ) ;
340-
338+
341339 for ( let i = start ; i <= end ; i ++ ) {
342340 if ( i > 3 && i < totalPages - 2 ) {
343341 pages . push (
344342 < PaginationItem key = { i } >
345343 < PaginationLink
346344 onMouseDown = { ( ) => handlePageChange ( i ) }
347345 isActive = { currentPage === i }
348- className = "cursor-pointer"
349346 >
350347 { i }
351348 </ PaginationLink >
352349 </ PaginationItem >
353350 ) ;
354351 }
355352 }
356-
353+
357354 // Show ellipsis if current page is far from end
358355 if ( currentPage < totalPages - 4 ) {
359356 pages . push (
@@ -362,15 +359,14 @@ const EventsGrid = memo(
362359 </ PaginationItem >
363360 ) ;
364361 }
365-
362+
366363 // Show last 3 pages
367364 for ( let i = totalPages - 2 ; i <= totalPages ; i ++ ) {
368365 pages . push (
369366 < PaginationItem key = { i } >
370367 < PaginationLink
371368 onMouseDown = { ( ) => handlePageChange ( i ) }
372369 isActive = { currentPage === i }
373- className = "cursor-pointer"
374370 >
375371 { i }
376372 </ PaginationLink >
@@ -385,15 +381,14 @@ const EventsGrid = memo(
385381 < PaginationLink
386382 onMouseDown = { ( ) => handlePageChange ( i ) }
387383 isActive = { currentPage === i }
388- className = "cursor-pointer"
389384 >
390385 { i }
391386 </ PaginationLink >
392387 </ PaginationItem >
393388 ) ;
394389 }
395390 }
396-
391+
397392 return pages ;
398393 } ) ( ) }
399394
@@ -402,11 +397,6 @@ const EventsGrid = memo(
402397 onMouseDown = { ( ) =>
403398 handlePageChange ( Math . min ( totalPages , currentPage + 1 ) )
404399 }
405- className = {
406- currentPage === totalPages
407- ? "pointer-events-none opacity-50"
408- : "cursor-pointer"
409- }
410400 />
411401 </ PaginationItem >
412402 </ PaginationContent >
0 commit comments