mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
refactor: improve loading card generation
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user