refactor: improve loading card generation

This commit is contained in:
Raminder Singh committed 2026-05-04 10:35:56 +05:30
1 parent 69be59dbbe
commit 3511226bdd
1 file changed
+3 -1
@@ -197,6 +197,8 @@ const IntegrationsPage: NextPageWithLayout = () => {
}
}, [filteredAndSortedIntegrations, integrationFilterCategory, search])
const NUM_LOADING_CARDS = 8
return (
<>
<PageHeader size="large">
@@ -236,7 +238,7 @@ const IntegrationsPage: NextPageWithLayout = () => {
className="grid xl:grid-cols-3 2xl:grid-cols-4 gap-x-4 gap-y-3"
style={{ gridAutoRows: 'minmax(110px, auto)' }}
>
{new Array(8).fill(0).map((_, idx) => (
{Array.from({ length: NUM_LOADING_CARDS }).map((_, idx) => (
<IntegrationLoadingCard key={`integration-loading-${idx}`} />
))}
</div>