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 layout

Steven Tey9fee29dfd48d
diff --git a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/layout.tsx b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/layout.tsx
index 73381fbc47..1a98682223 100644
--- a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/layout.tsx
+++ b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/layout.tsx
@@ -12,7 +12,7 @@ export default function AdminProgramsLayout({
<div className="border-border-subtle overflow-hidden rounded-xl border bg-neutral-100">
<Suspense>
<ProgramsNavTabs />
- <div className="border-border-subtle -mx-px -mb-px space-y-4 rounded-xl border bg-white">
+ <div className="border-border-subtle -mx-px -mb-px space-y-4 rounded-xl border bg-white p-4">
{children}
</div>
</Suspense>
diff --git a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/page.tsx b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/page.tsx
index 661393dba4..0631699a03 100644
--- a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/page.tsx
+++ b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/page.tsx
@@ -342,7 +342,7 @@ export default function AdminProgramsPage() {
}}
/>
- <div className="mx-auto flex w-full max-w-screen-xl flex-col gap-4 p-6 pb-12 pt-4">
+ <div className="mx-auto flex w-full max-w-screen-xl flex-col gap-4">
<div className="flex justify-end">
<Button
text="Add program"
diff --git a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/sales/page.tsx b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/sales/page.tsx
index d32c4e530c..937e1844ea 100644
--- a/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/sales/page.tsx
+++ b/apps/web/app/(ee)/admin.dub.co/(dashboard)/programs/sales/page.tsx
@@ -10,18 +10,10 @@ import {
} from "@dub/ui";
import { cn, currencyFormatter, fetcher, nFormatter } from "@dub/utils";
import NumberFlow from "@number-flow/react";
-import { Suspense, useMemo } from "react";
+import { useMemo } from "react";
import useSWR from "swr";
export default function ProgramSalesPage() {
- return (
- <Suspense>
- <ProgramSalesPageClient />
- </Suspense>
- );
-}
-
-function ProgramSalesPageClient() {
const { getQueryString } = useRouterStuff();
const { data: { programs } = {}, isLoading } = useSWR<{
@@ -138,7 +130,7 @@ function ProgramSalesPageClient() {
);
return (
- <div className="mx-auto flex w-full max-w-screen-xl flex-col space-y-6 p-6">
+ <div className="mx-auto flex w-full max-w-screen-xl flex-col space-y-6">
<SimpleDateRangePicker defaultInterval="mtd" className="w-fit" />
<div className="flex flex-col divide-y divide-neutral-200 rounded-lg border border-neutral-200 bg-white">
<div className="grid w-full grid-cols-1 divide-x sm:grid-cols-3">