Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update cards loader

Tim Wilson2ab3f04cadf7
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/integrations-list.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/integrations-list.tsx
index 274ca79faf..8128df2d97 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/integrations-list.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/integrations-list.tsx
@@ -1,5 +1,4 @@
import IntegrationCard from "@/ui/integrations/integration-card";
-import OAuthAppPlaceholder from "@/ui/oauth-apps/oauth-app-placeholder";
import { prisma } from "@dub/prisma";
import { Integration } from "@prisma/client";
import { Suspense } from "react";
@@ -106,12 +105,18 @@ async function IntegrationsCards({
);
}
-async function IntegrationsCardsLoader() {
- return (
- <div className="grid gap-3 sm:grid-cols-2">
- {Array.from({ length: 4 }).map((_, i) => (
- <OAuthAppPlaceholder key={i} />
- ))}
+function IntegrationsCardsLoader() {
+ return [...Array(3)].map((_, idx) => (
+ <div key={idx}>
+ <div className="h-4 w-24 animate-pulse rounded-md bg-neutral-200" />
+ <div className="mt-4 grid gap-3 sm:grid-cols-2 xl:grid-cols-3">
+ {[...Array(3)].map((_, idx) => (
+ <div
+ key={idx}
+ className="h-[170px] animate-pulse rounded-lg bg-neutral-200"
+ />
+ ))}
+ </div>
</div>
- );
+ ));
}
diff --git a/apps/web/ui/integrations/integration-card.tsx b/apps/web/ui/integrations/integration-card.tsx
index 4fab0212ce..ab93795274 100644
--- a/apps/web/ui/integrations/integration-card.tsx
+++ b/apps/web/ui/integrations/integration-card.tsx
@@ -19,7 +19,7 @@ export default function IntegrationCard(
return (
<Link
href={`/${slug}/settings/integrations/${integration.slug}`}
- className="hover:drop-shadow-card-hover relative rounded-xl border border-gray-200 bg-white p-4 transition-[filter]"
+ className="hover:drop-shadow-card-hover relative rounded-lg border border-gray-200 bg-white p-4 transition-[filter]"
>
{installed && (
<div className="absolute right-4 top-4 rounded bg-green-100 px-2 py-1 text-[0.625rem] font-semibold uppercase leading-none text-green-800">