Skip to content

Commit c4c724b

Browse files
committed
Update BMAC link
1 parent aaf1d65 commit c4c724b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

client/components/faq.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Heading, Link } from "@radix-ui/themes";
22
import type { ReactNode } from "react";
33
import { useId } from "react";
44
import type { FAQPage, WithContext } from "schema-dts";
5+
import { BMAC_LINK } from "~/constants/common";
56

67
const BMAC_CTA = (
7-
<Link href="https://buymeacoffee.com/animechan_api/membership" target="_blank" underline="always">
8+
<Link href={BMAC_LINK} target="_blank" underline="always">
89
Buy Me A Coffee
910
</Link>
1011
);

client/constants/common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ export const SPLITBEE_EVENTS = {
33
BMAC_LINK: "Click BMAC Link",
44
RUN_CODE: "Click Run Code",
55
};
6+
7+
export const BMAC_LINK = "https://buymeacoffee.com/rocktimsaikia/membership";

client/pages/get-premium.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { CheckboxIcon, RocketIcon } from "@radix-ui/react-icons";
22
import { Flex, Link, Section, Strong, Text } from "@radix-ui/themes";
33
import Layout from "~/components/Layout";
4+
import { BMAC_LINK } from "~/constants/common";
45

56
export default function GetPremium() {
67
return (
@@ -53,11 +54,7 @@ export default function GetPremium() {
5354
plan to unlock access to our premium API.
5455
</Text>
5556
<div className="mt-4">
56-
<a
57-
href="https://buymeacoffee.com/animechan_api/membership"
58-
target="_blank"
59-
rel="noreferrer"
60-
>
57+
<a href={BMAC_LINK} target="_blank" rel="noreferrer">
6158
<img
6259
src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=animechan_api&button_colour=BD5FFF&font_colour=ffffff&font_family=Lato&outline_colour=000000&coffee_colour=FFDD00"
6360
alt="Animechan"

client/pages/privacy-policy.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Container, Flex, Heading, Link } from "@radix-ui/themes";
1+
import { Flex, Heading, Link } from "@radix-ui/themes";
22
import Layout from "~/components/Layout";
3+
import { BMAC_LINK } from "~/constants/common";
34

45
export default function PrivacyPolicy() {
56
return (
@@ -18,7 +19,7 @@ export default function PrivacyPolicy() {
1819
<p>
1920
At Animechan, we only collects your email address when you subscribe and become a
2021
premium member via our{" "}
21-
<Link href="https://buymeacoffee.com/animechan_api" target="_blank" rel="noreferrer">
22+
<Link href={BMAC_LINK} target="_blank" rel="noreferrer">
2223
Buy Me A Coffee page
2324
</Link>
2425
.

0 commit comments

Comments
 (0)