Skip to content

Commit 2f2f8de

Browse files
committed
UI tweaks
1 parent abf8eea commit 2f2f8de

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

packages/thirdweb/src/react/web/ui/Bridge/payment-success/PaymentReceipt.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export function PaymentReceipt({
364364
<Container
365365
flex="column"
366366
fullHeight
367-
p="lg"
367+
p="md"
368368
style={{ maxHeight: "500px", minHeight: "250px", overflowY: "auto" }}
369369
>
370370
<ModalHeader onBack={onBack} title="Payment Receipt" />
@@ -374,10 +374,6 @@ export function PaymentReceipt({
374374
<Container flex="column" gap="lg">
375375
{/* Status Results */}
376376
<Container flex="column" gap="md">
377-
<Text color="primaryText" size="md">
378-
Transactions
379-
</Text>
380-
381377
{completedStatuses.map((status, index) => (
382378
<CompletedStepDetailCard
383379
key={`${status.type}-${index}`}

packages/thirdweb/src/react/web/ui/Bridge/swap-widget/swap-ui.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ function SwapUIBase(
195195
enabled:
196196
!!buyTokenWithPrices &&
197197
!!sellTokenWithPrices &&
198-
!!props.amountSelection.amount,
198+
!!props.amountSelection.amount &&
199+
!!props.activeWalletInfo,
199200
queryFn: async (): Promise<{
200201
result: Extract<BridgePrepareResult, { type: "buy" | "sell" }>;
201202
request: Extract<BridgePrepareRequest, { type: "buy" | "sell" }>;
@@ -656,7 +657,7 @@ function TokenSection(props: {
656657
gap: spacing.xxs,
657658
}}
658659
>
659-
<WalletDotIcon size={fontSize.sm} />
660+
<WalletDotIcon size={fontSize.xs} />
660661
<DecimalRenderer
661662
value={formatTokenAmount(
662663
props.balance.data,
@@ -706,7 +707,8 @@ function SelectedTokenButton(props: {
706707
gap="xs"
707708
style={{
708709
borderRadius: radius.full,
709-
padding: spacing.xs,
710+
paddingBlock: spacing.xxs,
711+
paddingInline: spacing.xs,
710712
}}
711713
>
712714
{/* icons */}
@@ -754,11 +756,11 @@ function SelectedTokenButton(props: {
754756
</Container>
755757

756758
{/* token symbol and chain name */}
757-
<Container flex="column" style={{ gap: "2px" }}>
759+
<Container flex="column">
758760
{props.selectedToken?.isFetching ? (
759761
<Skeleton width="40px" height={fontSize.md} color="modalBg" />
760762
) : (
761-
<Text size="md" color="primaryText" weight={500}>
763+
<Text size="sm" color="primaryText" weight={500}>
762764
{props.selectedToken?.data?.symbol}
763765
</Text>
764766
)}
@@ -782,7 +784,7 @@ function SelectedTokenButton(props: {
782784
)}
783785
</Container>
784786
<Container color="secondaryText">
785-
<ChevronRightIcon width={iconSize.sm} height={iconSize.sm} />
787+
<ChevronRightIcon width={iconSize.xs} height={iconSize.xs} />
786788
</Container>
787789
</Button>
788790
);

0 commit comments

Comments
 (0)