Skip to content

Commit 7d0ce80

Browse files
committed
lint
1 parent 2a25f96 commit 7d0ce80

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

apps/dashboard/src/app/pay/[id]/page.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Metadata } from "next";
33
import Image from "next/image";
44
import { Bridge, defineChain, toTokens } from "thirdweb";
55
import { getChainMetadata } from "thirdweb/chains";
6-
import { resolveScheme } from "thirdweb/storage";
76
import { shortenAddress } from "thirdweb/utils";
87
import { getPaymentLink } from "@/api/universal-bridge/links";
98
import { Badge } from "@/components/ui/badge";
@@ -14,6 +13,7 @@ import {
1413
} from "@/constants/server-envs";
1514
import { getConfiguredThirdwebClient } from "@/constants/thirdweb.server";
1615
import { resolveEns } from "@/lib/ens";
16+
import { resolveSchemeWithErrorHandler } from "@/utils/resolveSchemeWithErrorHandler";
1717
import { PayPageWidget } from "../components/client/PayPageWidget.client";
1818
import { payAppThirdwebClient } from "../constants";
1919

@@ -55,6 +55,7 @@ export default async function PayPage({
5555
});
5656

5757
const chainPromise = getChainMetadata(
58+
// eslint-disable-next-line no-restricted-syntax
5859
defineChain(Number(paymentLink.destinationToken.chainId)),
5960
);
6061

@@ -86,7 +87,7 @@ export default async function PayPage({
8687
<div className="flex flex-row items-center justify-start gap-4">
8788
{projectMetadata.image && (
8889
<Image
89-
src={resolveScheme({
90+
src={resolveSchemeWithErrorHandler({
9091
uri: projectMetadata.image,
9192
client: payAppThirdwebClient,
9293
})}
@@ -113,7 +114,7 @@ export default async function PayPage({
113114
<div className="flex flex-row items-center gap-2">
114115
{token.iconUri && (
115116
<img
116-
src={resolveScheme({
117+
src={resolveSchemeWithErrorHandler({
117118
uri: token.iconUri,
118119
client: getConfiguredThirdwebClient({
119120
secretKey: DASHBOARD_THIRDWEB_SECRET_KEY,
@@ -129,11 +130,11 @@ export default async function PayPage({
129130
{toTokens(BigInt(paymentLink.amount), token.decimals)}{" "}
130131
{token.symbol}
131132
</div>
132-
{token.prices["USD"] && (
133+
{token.prices.USD && (
133134
<span>
134135
$
135136
{(
136-
Number(token.prices["USD"]) *
137+
Number(token.prices.USD) *
137138
Number(
138139
toTokens(BigInt(paymentLink.amount), token.decimals),
139140
)
@@ -150,7 +151,7 @@ export default async function PayPage({
150151
<div className="flex flex-row items-center gap-2">
151152
{chain.icon?.url && (
152153
<img
153-
src={resolveScheme({
154+
src={resolveSchemeWithErrorHandler({
154155
uri: chain.icon.url,
155156
client: getConfiguredThirdwebClient({
156157
secretKey: DASHBOARD_THIRDWEB_SECRET_KEY,

apps/portal/src/app/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export function Header() {
341341

342342
{/* Mobile menu */}
343343
{showBurgerMenu && (
344-
<div className="fixed inset-0 top-sticky-top-height z-[50] overflow-auto bg-card p-6 xl:hidden">
344+
<div className="fixed inset-0 top-sticky-top-height z-50 overflow-auto bg-card p-6 xl:hidden">
345345
<div className="flex flex-col gap-6">
346346
<div className="flex flex-col gap-4">
347347
<h3 className="font-semibold text-lg">Products</h3>

apps/portal/src/components/code/RenderCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function RenderCode(props: {
3030
/>
3131
</ScrollShadow>
3232
<CopyButton
33-
className="absolute top-4 right-4 z-[10] border bg-background p-2 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
33+
className="absolute top-4 right-4 z-10 border bg-background p-2 opacity-0 transition-opacity duration-300 group-hover:opacity-100"
3434
iconClassName="size-3"
3535
text={props.code}
3636
/>

0 commit comments

Comments
 (0)