File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 11import { Skeleton } from '@heroui/skeleton'
22import LoadingSpinner from 'components/LoadingSpinner'
33import CardSkeleton from 'components/skeletons/Card'
4- import SnapshotSkeleton from 'components/skeletons/SnapshotSkeleton'
54import UserCardSkeleton from 'components/skeletons/UserCard'
65
76function userCardRender ( ) {
@@ -15,18 +14,6 @@ function userCardRender() {
1514 )
1615}
1716
18- function snapshotCardRender ( ) {
19- const cardCount = 12
20- return (
21- < div className = "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4" >
22- { Array . from ( { length : cardCount } ) . map ( ( _ , index ) => (
23- < SnapshotSkeleton key = { `snapshot-skeleton-${ index } ` } />
24- ) ) }
25- </ div >
26- )
27- }
28-
29-
3017const SkeletonBase = ( {
3118 indexName,
3219 loadingImageUrl,
@@ -62,12 +49,6 @@ const SkeletonBase = ({
6249 break
6350 case 'users' :
6451 return userCardRender ( )
65-
66- case 'organizations' :
67- return userCardRender ( )
68- case 'snapshots' :
69- return snapshotCardRender ( )
70-
7152 default :
7253 return < LoadingSpinner imageUrl = { loadingImageUrl } />
7354 }
You can’t perform that action at this time.
0 commit comments