Skip to content

Commit 9f75c69

Browse files
committed
lint
1 parent 2a25f96 commit 9f75c69

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

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

Lines changed: 12 additions & 9 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,10 +87,12 @@ 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-
uri: projectMetadata.image,
91-
client: payAppThirdwebClient,
92-
})}
90+
src={
91+
resolveSchemeWithErrorHandler({
92+
uri: projectMetadata.image,
93+
client: payAppThirdwebClient,
94+
}) || ""
95+
}
9396
alt={projectMetadata.name}
9497
width={25}
9598
height={25}
@@ -113,7 +116,7 @@ export default async function PayPage({
113116
<div className="flex flex-row items-center gap-2">
114117
{token.iconUri && (
115118
<img
116-
src={resolveScheme({
119+
src={resolveSchemeWithErrorHandler({
117120
uri: token.iconUri,
118121
client: getConfiguredThirdwebClient({
119122
secretKey: DASHBOARD_THIRDWEB_SECRET_KEY,
@@ -129,11 +132,11 @@ export default async function PayPage({
129132
{toTokens(BigInt(paymentLink.amount), token.decimals)}{" "}
130133
{token.symbol}
131134
</div>
132-
{token.prices["USD"] && (
135+
{token.prices.USD && (
133136
<span>
134137
$
135138
{(
136-
Number(token.prices["USD"]) *
139+
Number(token.prices.USD) *
137140
Number(
138141
toTokens(BigInt(paymentLink.amount), token.decimals),
139142
)
@@ -150,7 +153,7 @@ export default async function PayPage({
150153
<div className="flex flex-row items-center gap-2">
151154
{chain.icon?.url && (
152155
<img
153-
src={resolveScheme({
156+
src={resolveSchemeWithErrorHandler({
154157
uri: chain.icon.url,
155158
client: getConfiguredThirdwebClient({
156159
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)