Skip to content

Commit 37ad2e4

Browse files
committed
Revert "lint"
This reverts commit 52256db.
1 parent 6a3d84a commit 37ad2e4

File tree

7 files changed

+78
-11
lines changed

7 files changed

+78
-11
lines changed

apps/dashboard/public/robots.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# *
22
User-agent: *
3-
Disallow: /
3+
Allow: /
44

55
# Host
66
Host: https://thirdweb.com
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
"use client";
2+
import { useTheme } from "next-themes";
3+
import type { ThirdwebClient } from "thirdweb";
4+
import { PayEmbed } from "thirdweb/react";
5+
import { Button } from "@/components/ui/button";
6+
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
7+
import { defineDashboardChain } from "@/lib/defineDashboardChain";
8+
import { getSDKTheme } from "../../../../../../../../@/utils/sdk-component-theme";
9+
10+
export function PayModalButton(props: {
11+
chainId: number;
12+
label: string;
13+
client: ThirdwebClient;
14+
}) {
15+
const { theme } = useTheme();
16+
17+
return (
18+
<Dialog>
19+
<DialogTrigger asChild>
20+
<Button className="w-full" variant="primary">
21+
{props.label}
22+
</Button>
23+
</DialogTrigger>
24+
<DialogContent
25+
className="border-none bg-transparent p-0 md:max-w-[360px]"
26+
dialogCloseClassName="focus:ring-0"
27+
dialogOverlayClassName="backdrop-blur-lg"
28+
>
29+
<PayEmbed
30+
className="!w-auto"
31+
client={props.client}
32+
payOptions={{
33+
prefillBuy: {
34+
allowEdits: {
35+
amount: true,
36+
chain: false,
37+
token: true,
38+
},
39+
// Do not include local chain overrides for chain pages
40+
// eslint-disable-next-line no-restricted-syntax
41+
chain: defineDashboardChain(props.chainId, undefined),
42+
},
43+
}}
44+
theme={getSDKTheme(theme === "dark" ? "dark" : "light")}
45+
/>
46+
</DialogContent>
47+
</Dialog>
48+
);
49+
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
"use client";
21
import { defineChain, type ThirdwebClient } from "thirdweb";
32
import type { ChainMetadata } from "thirdweb/chains";
43
import { BuyWidget } from "thirdweb/react";
4+
import { SectionTitle } from "./SectionTitle";
55

66
export function BuyFundsSection(props: {
77
chain: ChainMetadata;
88
client: ThirdwebClient;
99
}) {
1010
return (
1111
<section className="flex flex-col gap-4 items-center justify-center">
12+
<SectionTitle title="Bridge" />
1213
<BuyWidget
13-
amount="0.01"
14+
amount="0"
1415
// eslint-disable-next-line no-restricted-syntax
1516
chain={defineChain(props.chain.chainId)}
1617
client={props.client}

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { CircleAlertIcon } from "lucide-react";
22
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
33
import { getRawAccount } from "../../../../account/settings/getAccount";
44
import { getChain, getChainMetadata } from "../../utils";
5-
import { BuyFundsSection } from "./components/client/BuyFundsSection";
65
import NextSteps from "./components/client/NextSteps";
6+
import { BuyFundsSection } from "./components/server/BuyFundsSection";
77
import { ChainOverviewSection } from "./components/server/ChainOverviewSection";
88
import { ClaimChainSection } from "./components/server/ClaimChainSection";
99
import { ChainCTA } from "./components/server/cta-card";

apps/login/package.json

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import type { IconFC } from "./types.js";
2+
3+
/**
4+
* @internal
5+
*/
6+
export const CreditCardIcon: IconFC = (props) => {
7+
return (
8+
<svg
9+
fill="none"
10+
height={props.size}
11+
role="presentation"
12+
stroke={props.color ?? "currentColor"}
13+
strokeLinecap="round"
14+
strokeLinejoin="round"
15+
strokeWidth="1"
16+
viewBox="0 0 24 24"
17+
width={props.size}
18+
xmlns="http://www.w3.org/2000/svg"
19+
>
20+
<rect height="14" rx="2" width="20" x="2" y="5" />
21+
<line x1="2" x2="22" y1="10" y2="10" />
22+
</svg>
23+
);
24+
};

pnpm-lock.yaml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)