Skip to content

Commit 64fca9a

Browse files
committed
fix: lint
1 parent 05d33e4 commit 64fca9a

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

apps/dashboard/src/app/(dashboard)/(bridge)/routes/components/server/routelist-card.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Card, CardContent, CardHeader } from "@/components/ui/card";
22
import { getThirdwebClient } from "@/constants/thirdweb.server";
33
import { resolveSchemeWithErrorHandler } from "@/lib/resolveSchemeWithErrorHandler";
4-
import { defineChain, getContract, NATIVE_TOKEN_ADDRESS } from "thirdweb";
4+
import { NATIVE_TOKEN_ADDRESS, defineChain, getContract } from "thirdweb";
55
import { getChainMetadata } from "thirdweb/chains";
66
import { name } from "thirdweb/extensions/common";
77

@@ -35,34 +35,34 @@ export async function RouteListCard({
3535
originTokenAddress.toLowerCase() === NATIVE_TOKEN_ADDRESS
3636
? "ETH"
3737
: name({
38-
contract: getContract({
39-
address: originTokenAddress,
40-
chain: defineChain(originChainId),
41-
client: getThirdwebClient(),
42-
}),
43-
}).catch(() => undefined),
38+
contract: getContract({
39+
address: originTokenAddress,
40+
chain: defineChain(originChainId),
41+
client: getThirdwebClient(),
42+
}),
43+
}).catch(() => undefined),
4444
// eslint-disable-next-line no-restricted-syntax
4545
getChainMetadata(defineChain(destinationChainId)),
4646
destinationTokenAddress.toLowerCase() === NATIVE_TOKEN_ADDRESS
4747
? "ETH"
4848
: name({
49-
contract: getContract({
50-
address: destinationTokenAddress,
51-
chain: defineChain(destinationChainId),
52-
client: getThirdwebClient(),
53-
}),
54-
}).catch(() => undefined),
49+
contract: getContract({
50+
address: destinationTokenAddress,
51+
chain: defineChain(destinationChainId),
52+
client: getThirdwebClient(),
53+
}),
54+
}).catch(() => undefined),
5555
originTokenIconUri
5656
? resolveSchemeWithErrorHandler({
57-
uri: originTokenIconUri,
58-
client: getThirdwebClient(),
59-
})
57+
uri: originTokenIconUri,
58+
client: getThirdwebClient(),
59+
})
6060
: undefined,
6161
destinationTokenIconUri
6262
? resolveSchemeWithErrorHandler({
63-
uri: destinationTokenIconUri,
64-
client: getThirdwebClient(),
65-
})
63+
uri: destinationTokenIconUri,
64+
client: getThirdwebClient(),
65+
})
6666
: undefined,
6767
]);
6868

apps/dashboard/src/app/(dashboard)/(bridge)/routes/components/server/routelist-row.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { CopyTextButton } from "@/components/ui/CopyTextButton";
22
import { TableCell, TableRow } from "@/components/ui/table";
33
import { getThirdwebClient } from "@/constants/thirdweb.server";
44
import { resolveSchemeWithErrorHandler } from "@/lib/resolveSchemeWithErrorHandler";
5-
import { getContract, NATIVE_TOKEN_ADDRESS } from "thirdweb";
5+
import { NATIVE_TOKEN_ADDRESS, getContract } from "thirdweb";
66
import { defineChain, getChainMetadata } from "thirdweb/chains";
77
import { symbol } from "thirdweb/extensions/common";
88

@@ -36,34 +36,34 @@ export async function RouteListRow({
3636
originTokenAddress.toLowerCase() === NATIVE_TOKEN_ADDRESS
3737
? "ETH"
3838
: symbol({
39-
contract: getContract({
40-
address: originTokenAddress,
41-
chain: defineChain(originChainId),
42-
client: getThirdwebClient(),
43-
}),
44-
}).catch(() => undefined),
39+
contract: getContract({
40+
address: originTokenAddress,
41+
chain: defineChain(originChainId),
42+
client: getThirdwebClient(),
43+
}),
44+
}).catch(() => undefined),
4545
// eslint-disable-next-line no-restricted-syntax
4646
getChainMetadata(defineChain(destinationChainId)),
4747
destinationTokenAddress.toLowerCase() === NATIVE_TOKEN_ADDRESS
4848
? "ETH"
4949
: symbol({
50-
contract: getContract({
51-
address: destinationTokenAddress,
52-
chain: defineChain(destinationChainId),
53-
client: getThirdwebClient(),
54-
}),
55-
}).catch(() => undefined),
50+
contract: getContract({
51+
address: destinationTokenAddress,
52+
chain: defineChain(destinationChainId),
53+
client: getThirdwebClient(),
54+
}),
55+
}).catch(() => undefined),
5656
originTokenIconUri
5757
? resolveSchemeWithErrorHandler({
58-
uri: originTokenIconUri,
59-
client: getThirdwebClient(),
60-
})
58+
uri: originTokenIconUri,
59+
client: getThirdwebClient(),
60+
})
6161
: undefined,
6262
destinationTokenIconUri
6363
? resolveSchemeWithErrorHandler({
64-
uri: destinationTokenIconUri,
65-
client: getThirdwebClient(),
66-
})
64+
uri: destinationTokenIconUri,
65+
client: getThirdwebClient(),
66+
})
6767
: undefined,
6868
]);
6969

0 commit comments

Comments
 (0)