Skip to content

Commit dd7379a

Browse files
ci(release): publish latest release
1 parent bfe9329 commit dd7379a

File tree

3 files changed

+37
-33
lines changed

3 files changed

+37
-33
lines changed

RELEASE

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IPFS hash of the deployment:
2-
- CIDv0: `QmPcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi`
3-
- CIDv1: `bafybeias3bjepuy326a66fc6lsm7wr7kfo7v5z7qvjgho2s5ge4s734mk4`
2+
- CIDv0: `Qmb32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24`
3+
- CIDv1: `bafybeif4ussdpkymilubf3qmecctn52my5szafwzho24vhcxez6nvfwdpe`
44

55
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
66

@@ -10,9 +10,14 @@ You can also access the Uniswap Interface from an IPFS gateway.
1010
Your Uniswap settings are never remembered across different URLs.
1111

1212
IPFS gateways:
13-
- https://bafybeias3bjepuy326a66fc6lsm7wr7kfo7v5z7qvjgho2s5ge4s734mk4.ipfs.dweb.link/
14-
- [ipfs://QmPcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi/](ipfs://QmPcDN4EiXdJ2e4eH6cYKAGiYRrAh8W2hgbmDUf5GKzRGi/)
13+
- https://bafybeif4ussdpkymilubf3qmecctn52my5szafwzho24vhcxez6nvfwdpe.ipfs.dweb.link/
14+
- [ipfs://Qmb32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24/](ipfs://Qmb32y1Tr36548yibWocrfwjoXvLKDe2fwiJ34vMNi6A24/)
1515

16-
### 5.76.1 (2025-03-13)
16+
### 5.76.2 (2025-03-17)
17+
18+
19+
### Bug Fixes
20+
21+
* **web:** fix swapping on TDP (#17378) 3000727
1722

1823

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web/5.76.1
1+
web/5.76.2

packages/uniswap/src/features/transactions/swap/form/SwapFormButton.tsx

+26-27
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,6 @@ export function SwapFormButton({
189189
],
190190
)
191191

192-
const handleOnReviewPress = useCallback(() => {
193-
// One of these modals may or may not be showing
194-
// If showing, hide
195-
handleHideMaxNativeTransferModal()
196-
handleHideTokenWarningModal()
197-
198-
onReviewPress({
199-
skipBridgingWarning: false,
200-
skipMaxTransferWarning: false,
201-
skipTokenProtectionWarning: false,
202-
})
203-
}, [handleHideMaxNativeTransferModal, handleHideTokenWarningModal, onReviewPress])
204-
205192
const bridgingModalActionCallback = useCallback(
206193
(accepted: boolean) => {
207194
setShowBridgingWarningModal(false)
@@ -212,10 +199,6 @@ export function SwapFormButton({
212199
[onReviewPress],
213200
)
214201

215-
const handleBridgingOnContinue = useCallback(() => bridgingModalActionCallback(true), [bridgingModalActionCallback])
216-
217-
const handleBridgingOnClose = useCallback(() => bridgingModalActionCallback(false), [bridgingModalActionCallback])
218-
219202
const invalidTokenSelection = useMemo(() => Object.values(currencies).some((currency) => !currency), [currencies])
220203
const invalidAmountSelection = !exactAmountFiat && !exactAmountToken
221204

@@ -281,11 +264,7 @@ export function SwapFormButton({
281264

282265
// If disabled, use defaults for background color
283266
// Otherwise, we'll try and use the color from the token (i.e. swapping on Web > TDP)
284-
const buttonBackgroundColor = disabled
285-
? undefined
286-
: !activeAccount || isSubmitting
287-
? lightTokenColor
288-
: validTokenColor
267+
const buttonBackgroundColor = disabled ? undefined : isInactiveAccountOrSubmitting ? lightTokenColor : validTokenColor
289268

290269
const buttonVariant: ButtonProps['variant'] = !activeAccount
291270
? 'branded'
@@ -312,7 +291,14 @@ export function SwapFormButton({
312291
<LowNativeBalanceModal
313292
isOpen={showMaxNativeTransferModal}
314293
onClose={handleHideMaxNativeTransferModal}
315-
onAcknowledge={handleOnReviewPress}
294+
onAcknowledge={() => {
295+
handleHideMaxNativeTransferModal()
296+
onReviewPress({
297+
skipBridgingWarning: true,
298+
skipTokenProtectionWarning: true,
299+
skipMaxTransferWarning: true,
300+
})
301+
}}
316302
/>
317303
<Flex row alignSelf="stretch">
318304
<Button
@@ -323,7 +309,13 @@ export function SwapFormButton({
323309
backgroundColor={buttonBackgroundColor}
324310
size={isShortMobileDevice ? 'small' : 'large'}
325311
testID={TestID.ReviewSwap}
326-
onPress={handleOnReviewPress}
312+
onPress={() =>
313+
onReviewPress({
314+
skipBridgingWarning: false,
315+
skipMaxTransferWarning: false,
316+
skipTokenProtectionWarning: false,
317+
})
318+
}
327319
>
328320
{buttonTextColor ? (
329321
<Button.Text customBackgroundColor={buttonBackgroundColor} color={buttonTextColor}>
@@ -339,16 +331,23 @@ export function SwapFormButton({
339331
<BridgingModal
340332
isOpen={showBridgingWarningModal}
341333
derivedSwapInfo={derivedSwapInfo}
342-
onContinue={handleBridgingOnContinue}
343-
onClose={handleBridgingOnClose}
334+
onContinue={() => bridgingModalActionCallback(true)}
335+
onClose={() => bridgingModalActionCallback(false)}
344336
/>
345337
{currenciesWithProtectionWarnings.length > 0 && currenciesWithProtectionWarnings[0] && (
346338
<TokenWarningModal
347339
isVisible={showTokenWarningModal}
348340
currencyInfo0={currenciesWithProtectionWarnings[0]}
349341
currencyInfo1={currenciesWithProtectionWarnings.length > 1 ? currenciesWithProtectionWarnings[1] : undefined}
350342
closeModalOnly={handleHideTokenWarningModal}
351-
onAcknowledge={handleOnReviewPress}
343+
onAcknowledge={() => {
344+
handleHideTokenWarningModal()
345+
onReviewPress({
346+
skipBridgingWarning: false,
347+
skipMaxTransferWarning: false,
348+
skipTokenProtectionWarning: true,
349+
})
350+
}}
352351
/>
353352
)}
354353
</Flex>

0 commit comments

Comments
 (0)