Skip to content

Commit c661a48

Browse files
authored
[Dashboard] Fix: change payment links -> payments (#7831)
1 parent 90f36bc commit c661a48

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/components/QuickstartSection.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export function QuickStartSection({
2020
</div>
2121
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
2222
<FeatureCard
23-
title="Create Payment Links"
24-
description="Create shareable URLs to receive any token in seconds."
23+
title="Create Payments"
24+
description="Create hosted payment UIs to receive any token in seconds."
2525
icon={LinkIcon}
2626
id="payment_links"
2727
color="violet"
@@ -59,7 +59,7 @@ export function QuickStartSection({
5959
/>
6060
<FeatureCard
6161
title="UI Components"
62-
description="Instantly add payments to your React app with prebuild components."
62+
description="Instantly add payments to your React app with prebuilt components."
6363
icon={CodeIcon}
6464
id="components"
6565
color="violet"

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/components/RecentPaymentsSection.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function RecentPaymentsSection(props: {
100100
<Link
101101
href={`/team/${props.teamSlug}/${props.projectSlug}/payments/links`}
102102
>
103-
Create Payment Link
103+
Create Payment
104104
<ArrowRightIcon className="size-4" />
105105
</Link>
106106
</Button>,

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default async function Layout(props: {
5050
},
5151
{
5252
exactMatch: true,
53-
name: "Links",
53+
name: "Create",
5454
path: `${payLayoutPath}/links`,
5555
},
5656
{

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/links/components/CreatePaymentLinkButton.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function CreatePaymentLinkButton(
107107
return result;
108108
},
109109
onSuccess: () => {
110-
toast.success("Payment link created successfully.");
110+
toast.success("Payment created successfully.");
111111
return queryClient.invalidateQueries({
112112
queryKey: ["payment-links", props.clientId, props.teamId],
113113
});
@@ -169,7 +169,7 @@ export function CreatePaymentLinkButton(
169169
)}
170170
>
171171
<DialogHeader>
172-
<DialogTitle>Create a Payment Link</DialogTitle>
172+
<DialogTitle>Create a Payment</DialogTitle>
173173
<DialogDescription>
174174
Get paid in any token on any chain.
175175
</DialogDescription>

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/links/components/PaymentLinksTable.client.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ export function PaymentLinksTable(props: { clientId: string; teamId: string }) {
101101
return (
102102
<EmptyState
103103
icon={LinkIcon}
104-
title="No payment links configured yet"
105-
description="Create a payment link to receive any token in seconds."
104+
title="No payments configured yet"
105+
description="Create a payment to receive any token in seconds."
106106
buttons={[
107107
<CreatePaymentLinkButton
108108
key="create-payment-link"
@@ -111,7 +111,7 @@ export function PaymentLinksTable(props: { clientId: string; teamId: string }) {
111111
>
112112
<Button className="gap-1" variant="default" size="sm">
113113
<PlusIcon className="size-4" />
114-
Create Payment Link
114+
Create Payment
115115
</Button>
116116
</CreatePaymentLinkButton>,
117117
]}
@@ -125,7 +125,7 @@ export function PaymentLinksTable(props: { clientId: string; teamId: string }) {
125125
<Table>
126126
<TableHeader>
127127
<TableRow>
128-
<TableHead>Payment Link</TableHead>
128+
<TableHead>Payment</TableHead>
129129
<TableHead>Recipient</TableHead>
130130
<TableHead>Amount</TableHead>
131131
<TableHead>Usages</TableHead>
@@ -274,7 +274,7 @@ function DeletePaymentLinkButton(
274274
<DialogTitle>Are you sure?</DialogTitle>
275275
<DialogDescription>
276276
This action cannot be undone. This will permanently delete the
277-
payment link.
277+
payment.
278278
</DialogDescription>
279279
</DialogHeader>
280280

@@ -290,7 +290,7 @@ function DeletePaymentLinkButton(
290290
});
291291
},
292292
onSuccess: () => {
293-
toast.success("Payment link deleted successfully.");
293+
toast.success("Payment deleted successfully.");
294294
setOpen(false);
295295
return queryClient.invalidateQueries({
296296
queryKey: ["payment-links", props.clientId, props.teamId],

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/links/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export default async function Page(props: {
2323
<div className="w-full flex flex-col md:flex-row justify-between gap-4 items-start">
2424
<div>
2525
<h2 className="mb-0.5 font-semibold text-xl tracking-tight">
26-
Payment Links
26+
Create a Payment
2727
</h2>
2828
<p className="text-muted-foreground text-sm">
29-
Make money in any token instantly with hosted payment links
29+
Make money in any token instantly with a hosted payments UI.
3030
</p>
3131
</div>
3232
<CreatePaymentLinkButton
@@ -36,7 +36,7 @@ export default async function Page(props: {
3636
>
3737
<Button className="gap-1" variant="default" size="sm">
3838
<PlusIcon className="size-4" />
39-
Create Payment Link
39+
Create Payment
4040
</Button>
4141
</CreatePaymentLinkButton>
4242
</div>

apps/dashboard/src/app/pay/components/client/PaymentLinkForm.client.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function PaymentLinkForm() {
116116

117117
const url = `${window.location.origin}/pay?${params.toString()}`;
118118
setPaymentUrl(url);
119-
toast.success("Payment link created!");
119+
toast.success("Payment created!");
120120
} catch (err) {
121121
toast.error(err instanceof Error ? err.message : "An error occurred");
122122
} finally {
@@ -188,7 +188,7 @@ export function PaymentLinkForm() {
188188
<CreditCardIcon className="size-5 sm:size-6" />
189189
</div>
190190
<CardTitle className="text-center sm:text-left">
191-
Create a Payment Link
191+
Create a Payment
192192
</CardTitle>
193193
</div>
194194
</CardHeader>

0 commit comments

Comments
 (0)