Skip to content

Commit 76481d9

Browse files
committed
optimize transaction details code
1 parent a488a91 commit 76481d9

File tree

3 files changed

+289
-727
lines changed

3 files changed

+289
-727
lines changed

src/views/userOp/DeveloperDetails.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,7 @@ export default function DeveloperDetails({
151151
</div>
152152
</div>
153153
<div
154-
className="overflow-auto flex-1 max-h-[290px]
155-
custom-scroll bg-white border-dark-200 rounded border
156-
ml-[16px]"
154+
className="overflow-auto flex-1 max-h-[290px] custom-scroll bg-white border-dark-200 rounded border ml-[16px]"
157155
>
158156
{item?.input}
159157
</div>
@@ -169,8 +167,7 @@ export default function DeveloperDetails({
169167
<div className="flex gap-1">
170168
{BUTTON_LIST.map(({ name, key }, index) => (
171169
<Chip
172-
className={`
173-
text-white table-tab py-[6px] px-3 ${sx.tab}`}
170+
className={`text-white table-tab py-[6px] px-3 ${sx.tab}`}
174171
onClick={() => setSelectedColor(key)}
175172
key={index}
176173
color={`${selectedColor === key ? 'blue-700' : 'white'}`}
@@ -361,7 +358,6 @@ export default function DeveloperDetails({
361358
<td className="text-black [87%] text-left text-sm leading-5 py-[14px] px-3">
362359
{index + 1}: callData
363360
</td>
364-
365361
<td className="wordbrack text-black [87%] py-[14px] px-3 text-sm leading-5">
366362
{item?.callData[index]}
367363
</td>
@@ -414,7 +410,6 @@ export default function DeveloperDetails({
414410
: item?.verificationGasLimit}
415411
</td>
416412
</tr>
417-
418413
<tr>
419414
<td className=" text-black whitespace-nowrap [87%] py-[14px] px-3 text-sm leading-5">
420415
preVerificationGas

0 commit comments

Comments
 (0)