Skip to content

Commit aa7b241

Browse files
author
Rajat
committed
Fixed links on checkout and links texts
1 parent dc0c75e commit aa7b241

4 files changed

Lines changed: 16 additions & 13 deletions

File tree

apps/web/components/public/payments/login-form.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
FormItem,
1313
FormMessage,
1414
} from "@/components/ui/form";
15-
import Link from "next/link";
1615
import {
1716
AddressContext,
1817
ProfileContext,
@@ -168,19 +167,23 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
168167
/>
169168
<Text2 className="text-xs" theme={theme.theme}>
170169
By signing in, you accept our{" "}
171-
<Link
172-
href="/terms"
170+
<a
171+
href="/p/terms"
173172
className="underline hover:text-primary font-medium"
173+
target="_blank"
174+
rel="noreferrer noopener"
174175
>
175176
Terms
176-
</Link>{" "}
177+
</a>{" "}
177178
and{" "}
178-
<Link
179-
href="/privacy"
179+
<a
180+
href="/p/privacy"
180181
className="underline hover:text-primary font-medium"
182+
target="_blank"
183+
rel="noreferrer noopener"
181184
>
182185
Privacy Policy
183-
</Link>
186+
</a>
184187
</Text2>
185188
<Button
186189
type="button"

apps/web/graphql/pages/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ export async function initSharedWidgets(ctx: GQLContext) {
211211
{
212212
name: "Legal",
213213
links: [
214-
{ label: "Terms of use", href: "/p/terms" },
215-
{ label: "Privacy policy", href: "/p/privacy" },
214+
{ label: "Terms of Use", href: "/p/terms" },
215+
{ label: "Privacy Policy", href: "/p/privacy" },
216216
],
217217
},
218218
],

packages/common-models/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export const leads = ["website", "newsletter", "download", "api"] as const;
3636
export const mailRequestStatus = ["pending", "approved", "rejected"] as const;
3737
export const pageNames = {
3838
home: "Home page",
39-
terms: "Terms of Service",
40-
privacy: "Privacy policy",
39+
terms: "Terms of Use",
40+
privacy: "Privacy Policy",
4141
blog: "Blog",
4242
};
4343
export const dripType = ["relative-date", "exact-date"] as const;

packages/page-blocks/src/blocks/footer/admin-widget/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ export default function AdminWidget({
4444
name: "Legal",
4545
links: [
4646
{
47-
label: "Terms of use",
47+
label: "Terms of Use",
4848
href: "/p/terms",
4949
id: generateUniqueId(),
5050
},
5151
{
52-
label: "Privacy policy",
52+
label: "Privacy Policy",
5353
href: "/p/privacy",
5454
id: generateUniqueId(),
5555
},

0 commit comments

Comments
 (0)