Skip to content

Commit a988a24

Browse files
committed
fix: various fixes
1 parent 1e02bac commit a988a24

5 files changed

Lines changed: 5 additions & 16 deletions

File tree

packages/react-kit/src/shared/components/ListItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export function ListItem({
118118
</div>
119119
) : chevron ? (
120120
<div className="w-13 h-13 flex items-center justify-center">
121-
<Icon name="chevronRight" className="h-6 w-6" />
121+
<Icon name="chevronRight" className="h-6 w-6 text-greyScale" />
122122
</div>
123123
) : null}
124124
</button>

packages/react-kit/src/signing/pages/BatchCalls.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import { decodeErc20Transfer, isErc20Transfer } from '../utils/erc20Transfer.js'
2828
import { isEthTransfer } from '../utils/ethTransfer.js'
2929
import { formatGasFee } from '../utils/formatGasFee'
3030

31-
const EXECUTION_TIME = '≈ 1 sec'
32-
3331
type TokenInfo = {
3432
symbol?: string | undefined
3533
decimals?: number | undefined
@@ -335,11 +333,6 @@ export function BatchCalls({ calls, confirm, reject }: BatchCallsProps) {
335333
) : (
336334
<DataRowSkeleton label="Fee" />
337335
)}
338-
<DataRow
339-
label="Total execution time"
340-
value={EXECUTION_TIME}
341-
iconName="clock"
342-
/>
343336
</DetailsContainer>
344337
</div>
345338
</SigningLayout>

packages/react-kit/src/signing/pages/Erc20Transfer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { type Address, erc20Abi, formatUnits, type Hex } from 'viem'
22
import { useReadContract } from 'wagmi'
33

44
import { Text } from '../../shared/components/Text'
5+
import { shortenHex } from '../../shared/utils/common'
56
import { ArrowCardPair } from '../components/ArrowCardPair'
67
import { DataRow, DataRowSkeleton } from '../components/DataRow'
78
import { InfoCard } from '../components/InfoCard'
@@ -102,7 +103,7 @@ export function Erc20Transfer({
102103
}
103104
bottomCard={
104105
<InfoCard
105-
title={to}
106+
title={shortenHex(to)}
106107
subtitle="Recipient"
107108
imageSource={RECIPIENT_IMAGE_SOURCE}
108109
/>

packages/react-kit/src/signing/pages/EthTransfer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { type Address, formatEther, type Hex } from 'viem'
22

33
import { Text } from '../../shared/components/Text'
4+
import { shortenHex } from '../../shared/utils/common'
45
import { ArrowCardPair } from '../components/ArrowCardPair'
56
import { DataRow, DataRowSkeleton } from '../components/DataRow'
67
import { InfoCard } from '../components/InfoCard'
@@ -56,7 +57,7 @@ export function EthTransfer({ to, value, confirm, reject }: EthTransferProps) {
5657
}
5758
bottomCard={
5859
<InfoCard
59-
title={to}
60+
title={shortenHex(to)}
6061
subtitle="Recipient"
6162
imageSource={RECIPIENT_IMAGE_SOURCE}
6263
/>

packages/react-kit/src/signing/pages/GenericRequest.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ function GenericSendTransaction({
101101
<DetailsContainer
102102
title="Transaction Summary"
103103
iconName="arrowSwapHorizontal"
104-
collapsible
105104
>
106105
<DataRow label="To" value={shortenHex((to ?? '0x') as string)} />
107106
<DataRow
@@ -122,11 +121,6 @@ function GenericSendTransaction({
122121
) : (
123122
<DataRowSkeleton label="Fee" />
124123
)}
125-
<DataRow
126-
label="Total execution time"
127-
value="≈ 1 sec"
128-
iconName="clock"
129-
/>
130124
</DetailsContainer>
131125
</div>
132126
</SigningLayout>

0 commit comments

Comments
 (0)