Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit c5562d0

Browse files
authored
nit: lint (#531)
1 parent c8a86d3 commit c5562d0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

ui/src/components/Tabs.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function Tabs(props: TabsProps) {
8888
<div className="rounded-md border bg-background-100">
8989
<ul
9090
role="tablist"
91-
className="flex flex-row text-sm rounded-t-md border bg-background-200"
91+
className="flex flex-row rounded-t-md border bg-background-200 text-sm"
9292
style={{
9393
borderLeft: '0',
9494
borderRight: '0',
@@ -250,7 +250,7 @@ export function Tabs(props: TabsProps) {
250250
id="request-section"
251251
role="tabpanel"
252252
aria-labelledby="request"
253-
className="flex-col divide-y lg:flex-row lg:divide-y-0 lg:divide-x scrollbars"
253+
className="scrollbars flex-col divide-y lg:flex-row lg:divide-x lg:divide-y-0"
254254
style={{
255255
fontSize: '0.8125rem',
256256
display: tab === 'request' ? 'flex' : 'none',
@@ -264,7 +264,7 @@ export function Tabs(props: TabsProps) {
264264
id="transaction-section"
265265
role="tabpanel"
266266
aria-labelledby="transaction"
267-
className="flex-col divide-y lg:flex-row lg:divide-y-0 lg:divide-x"
267+
className="flex-col divide-y lg:flex-row lg:divide-x lg:divide-y-0"
268268
style={{
269269
fontSize: '0.8125rem',
270270
display: tab === 'tx' ? 'flex' : 'none',
@@ -283,7 +283,7 @@ export function Tabs(props: TabsProps) {
283283
id="context-section"
284284
role="tabpanel"
285285
aria-labelledby="context"
286-
className="p-4 scrollbars"
286+
className="scrollbars p-4"
287287
style={{
288288
fontSize: '0.8125rem',
289289
display: tab === 'context' ? 'flex' : 'none',
@@ -314,9 +314,9 @@ export function Tabs(props: TabsProps) {
314314
display: tab === 'state' ? 'block' : 'none',
315315
}}
316316
>
317-
<div className="flex flex-col divide-y lg:flex-row lg:divide-y-0 lg:divide-x scrollbars">
318-
<div className="flex flex-col gap-2 p-4 lg:w-1/2 scrollbars">
319-
<div className="text-xs font-medium text-gray-700 uppercase">
317+
<div className="scrollbars flex flex-col divide-y lg:flex-row lg:divide-x lg:divide-y-0">
318+
<div className="scrollbars flex flex-col gap-2 p-4 lg:w-1/2">
319+
<div className="font-medium text-gray-700 text-xs uppercase">
320320
Current
321321
</div>
322322
{/* TODO: Handle non-JSON state from non-Frog frames */}
@@ -330,8 +330,8 @@ export function Tabs(props: TabsProps) {
330330
/>
331331
</div>
332332

333-
<div className="flex flex-col gap-2 p-4 lg:w-1/2 scrollbars">
334-
<div className="text-xs font-medium text-gray-700 uppercase">
333+
<div className="scrollbars flex flex-col gap-2 p-4 lg:w-1/2">
334+
<div className="font-medium text-gray-700 text-xs uppercase">
335335
Previous
336336
</div>
337337
<CodeToHtml
@@ -407,7 +407,7 @@ function TransactionReceiptContent(props: {
407407
href={`${blockExplorer?.url}/tx/${transactionId}`}
408408
target="_blank"
409409
rel="noreferrer noopener"
410-
className="inline-block items-center mb-2 font-medium text-gray-700 w-fit"
410+
className="mb-2 inline-block w-fit items-center font-medium text-gray-700"
411411
>
412412
<span>View on {blockExplorer.name}</span>
413413
</a>
@@ -455,7 +455,7 @@ function TransactionContent(props: {
455455

456456
return (
457457
<>
458-
<div className="flex flex-col py-2 px-4 divide-y lg:w-1/2">
458+
<div className="flex flex-col divide-y px-4 py-2 lg:w-1/2">
459459
<div className={rowClass}>
460460
<div className={labelClass}>Method</div>
461461
<div className={valueClass}>{data.method}</div>
@@ -496,7 +496,7 @@ function TransactionContent(props: {
496496
<div className={labelClass}>Value</div>
497497
<div className={valueClass}>
498498
{data.method.includes('eth') && (
499-
<span className="mr-1 text-gray-700 select-none">Ξ</span>
499+
<span className="mr-1 select-none text-gray-700">Ξ</span>
500500
)}
501501
{formatEther(BigInt(data.params.value))}
502502
</div>
@@ -530,7 +530,7 @@ function TransactionContent(props: {
530530
</div>
531531
)}
532532
</div>
533-
<div className="flex flex-col p-4 lg:w-1/2 scrollbars">
533+
<div className="scrollbars flex flex-col p-4 lg:w-1/2">
534534
<CodeToHtml code={JSON.stringify(data, null, 2)} lang="json" />
535535
</div>
536536
</>
@@ -549,10 +549,10 @@ function RequestContent(props: {
549549

550550
return (
551551
<>
552-
<div className="flex flex-col py-2 px-4 divide-y lg:w-1/2">
552+
<div className="flex flex-col divide-y px-4 py-2 lg:w-1/2">
553553
<div className={rowClass}>
554554
<div className={labelClass}>Method</div>
555-
<div className="flex items-center py-0.5 px-1 font-mono leading-4 text-gray-900 uppercase rounded border">
555+
<div className="flex items-center rounded border px-1 py-0.5 font-mono text-gray-900 uppercase leading-4">
556556
{data.method}
557557
</div>
558558
</div>
@@ -598,7 +598,7 @@ function RequestContent(props: {
598598
)}
599599
</div>
600600

601-
<div className="flex flex-col py-2 px-4 divide-y lg:w-1/2">
601+
<div className="flex flex-col divide-y px-4 py-2 lg:w-1/2">
602602
<div className={rowClass}>
603603
<div className={labelClass}>Status Code</div>
604604
<div
@@ -750,7 +750,7 @@ function MetaTagsContent(props: MetaTagsContentProps) {
750750
style={{ right: '0.5rem', top: '0.5rem' }}
751751
>
752752
<button
753-
className="p-1.5 text-gray-600 bg-transparent rounded hover:bg-gray-100"
753+
className="rounded bg-transparent p-1.5 text-gray-600 hover:bg-gray-100"
754754
aria-label={copied ? 'copied' : 'copy to clipboard'}
755755
type="button"
756756
onClick={copy}
@@ -759,7 +759,7 @@ function MetaTagsContent(props: MetaTagsContentProps) {
759759
</button>
760760
</div>
761761

762-
<div className="p-4 scrollbars">
762+
<div className="scrollbars p-4">
763763
<CodeToHtml code={metaTags} lang="html" />
764764
</div>
765765
</>

0 commit comments

Comments
 (0)