Skip to content

Commit 985b0bc

Browse files
authored
Update SkeletonsBase.tsx
1 parent 8b02e46 commit 985b0bc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

frontend/src/components/SkeletonsBase.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Skeleton } from '@heroui/skeleton'
22
import LoadingSpinner from 'components/LoadingSpinner'
33
import CardSkeleton from 'components/skeletons/Card'
4-
import SnapshotSkeleton from 'components/skeletons/SnapshotSkeleton'
54
import UserCardSkeleton from 'components/skeletons/UserCard'
65

76
function 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-
3017
const 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
}

0 commit comments

Comments
 (0)