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.

shipped improvements from Anzhelika

Steven Tey2098429ddef9
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
index 879462d69f..ada0fd27f1 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/overview-chart.tsx
@@ -128,8 +128,12 @@ export function OverviewChart() {
/>
)}
</ChartContext.Consumer>
- <XAxis />
- <YAxis showGridLines />
+ <XAxis
+ tickFormat={(date) =>
+ formatDateTooltip(date, { interval, start, end })
+ }
+ />
+ <YAxis showGridLines tickFormat={currencyFormatter} />
<Areas
seriesStyles={[
{
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/invoices/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/invoices/page-client.tsx
index 64a0eeb6a3..4b35dc59e4 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/invoices/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/invoices/page-client.tsx
@@ -14,8 +14,6 @@ import {
useRouterStuff,
} from "@dub/ui";
import { cn, currencyFormatter, fetcher } from "@dub/utils";
-import { ChevronLeft } from "lucide-react";
-import Link from "next/link";
import { useParams } from "next/navigation";
import useSWR from "swr";
@@ -33,25 +31,17 @@ export default function WorkspaceInvoicesClient() {
return (
<div className="rounded-lg border border-neutral-200 bg-white">
- <div className="flex flex-col items-start justify-between gap-y-4 p-4 md:pt-6 xl:flex-row">
- <div className="flex items-center gap-2">
- <Link
- href={`/${slug}/settings/billing`}
- className="rounded-lg p-1.5 text-neutral-500 transition-colors hover:bg-neutral-100 hover:text-neutral-900"
- >
- <ChevronLeft className="size-5" />
- </Link>
- <div>
- <h2 className="text-xl font-medium">Invoices</h2>
- <p className="text-balance text-sm leading-normal text-neutral-500">
- A history of all your Dub invoices
- </p>
- </div>
+ <div className="flex flex-col items-start justify-between gap-y-4 p-6 md:p-8 md:pb-2 lg:flex-row">
+ <div>
+ <h2 className="text-xl font-medium">Invoices</h2>
+ <p className="text-balance text-sm leading-normal text-neutral-500">
+ A history of all your Dub invoices
+ </p>
</div>
</div>
{programs?.length && (
<TabSelect
- className="px-4 sm:px-10"
+ className="px-4 md:px-5"
options={[
{ id: "subscription", label: "Subscription" },
{ id: "payout", label: "Partner Payouts" },