Skip to content

Commit d16d244

Browse files
committed
fix: lint
1 parent e3b63a3 commit d16d244

File tree

3 files changed

+40
-30
lines changed

3 files changed

+40
-30
lines changed

src/components/CCIP/Cards/TokenCard.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ interface TokenCardProps {
1212
variant?: "default" | "square"
1313
}
1414

15-
const TokenCard = memo(function TokenCard({ id, logo, link, onClick, totalNetworks, variant = "default" }: TokenCardProps) {
15+
const TokenCard = memo(function TokenCard({
16+
id,
17+
logo,
18+
link,
19+
onClick,
20+
totalNetworks,
21+
variant = "default",
22+
}: TokenCardProps) {
1623
const logoElement = (
1724
<object data={logo} type="image/png" aria-label={`${id} token logo`}>
1825
<img src={fallbackTokenIconUrl} alt={`${id} token logo`} loading="lazy" />
@@ -43,7 +50,12 @@ const TokenCard = memo(function TokenCard({ id, logo, link, onClick, totalNetwor
4350

4451
if (onClick) {
4552
return (
46-
<button type="button" className="token-card__square-container" onClick={onClick} aria-label={`View ${id} token details`}>
53+
<button
54+
type="button"
55+
className="token-card__square-container"
56+
onClick={onClick}
57+
aria-label={`View ${id} token details`}
58+
>
4759
{content}
4860
</button>
4961
)

src/components/CCIP/Drawer/LaneDrawer.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,7 @@ function LaneDrawer({
246246
/>
247247
</td>
248248
<td className="rate-tooltip-cell">
249-
<RateLimitCell
250-
isLoading={isLoadingRateLimits}
251-
rateLimit={token.rateLimits.standard}
252-
type="rate"
253-
/>
249+
<RateLimitCell isLoading={isLoadingRateLimits} rateLimit={token.rateLimits.standard} type="rate" />
254250
</td>
255251
<td>
256252
<RateLimitCell

src/components/CCIP/Drawer/TokenDrawer.tsx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -217,29 +217,29 @@ function TokenDrawer({
217217
</tr>
218218
) : (
219219
filteredVerifiers.map((verifier) => (
220-
<tr key={verifier.address}>
221-
<td>
222-
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
223-
<img
224-
src={verifier.logo}
225-
alt={`${verifier.name} logo`}
226-
className="ccip-table__logo"
227-
style={{ width: "24px", height: "24px" }}
228-
/>
229-
{verifier.name}
230-
</div>
231-
</td>
232-
<td>
233-
<Address
234-
contractUrl={getExplorerAddressUrl(network.explorer, network.chainType)(verifier.address)}
235-
address={verifier.address}
236-
endLength={4}
220+
<tr key={verifier.address}>
221+
<td>
222+
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
223+
<img
224+
src={verifier.logo}
225+
alt={`${verifier.name} logo`}
226+
className="ccip-table__logo"
227+
style={{ width: "24px", height: "24px" }}
237228
/>
238-
</td>
239-
<td>{getVerifierTypeDisplay(verifier.type)}</td>
240-
<td>N/A</td>
241-
</tr>
242-
))
229+
{verifier.name}
230+
</div>
231+
</td>
232+
<td>
233+
<Address
234+
contractUrl={getExplorerAddressUrl(network.explorer, network.chainType)(verifier.address)}
235+
address={verifier.address}
236+
endLength={4}
237+
/>
238+
</td>
239+
<td>{getVerifierTypeDisplay(verifier.type)}</td>
240+
<td>N/A</td>
241+
</tr>
242+
))
243243
)}
244244
</tbody>
245245
</table>
@@ -343,7 +343,9 @@ function TokenDrawer({
343343
logo: networkDetails?.logo || "",
344344
key: destinationChain,
345345
}}
346-
inOutbound={activeTab === TokenTab.Outbound ? LaneFilter.Outbound : LaneFilter.Inbound}
346+
inOutbound={
347+
activeTab === TokenTab.Outbound ? LaneFilter.Outbound : LaneFilter.Inbound
348+
}
347349
explorer={network.explorer}
348350
/>
349351
))

0 commit comments

Comments
 (0)