From df35fa8a1c7e8a89da6e133dbc531b3821bc8db2 Mon Sep 17 00:00:00 2001 From: Filip Sekulic Date: Fri, 23 Sep 2022 12:16:21 +0200 Subject: [PATCH] Minor fixes --- ui/pages/token-allowance/index.scss | 9 +++++++++ ui/pages/token-allowance/token-allowance.js | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ui/pages/token-allowance/index.scss b/ui/pages/token-allowance/index.scss index ad8c867b0ede..67d443949924 100644 --- a/ui/pages/token-allowance/index.scss +++ b/ui/pages/token-allowance/index.scss @@ -19,9 +19,18 @@ } a.token-allowance-container__verify-link { + width: fit-content; + margin-inline-start: 96px; + margin-inline-end: 96px; padding: 0; } + a.token-allowance-container__view-details { + width: fit-content; + margin-inline-start: 108px; + margin-inline-end: 108px; + } + &__card-wrapper { width: 100%; } diff --git a/ui/pages/token-allowance/token-allowance.js b/ui/pages/token-allowance/token-allowance.js index fbfdacca2cd5..c0779831d07e 100644 --- a/ui/pages/token-allowance/token-allowance.js +++ b/ui/pages/token-allowance/token-allowance.js @@ -77,7 +77,6 @@ export default function TokenAllowance({ const networkName = NETWORK_TO_NAME_MAP[txData.chainId] || networkIdentifier; const customNonceValue = ''; - const customNonceMerge = (transactionData) => customNonceValue ? { @@ -87,10 +86,10 @@ export default function TokenAllowance({ : transactionData; const rejectTransaction = () => { - dispatch(cancelTx(txData.id)).then(() => { + dispatch(cancelTx(txData)).then(() => { dispatch(clearConfirmTransaction()); dispatch(updateCustomNonce('')); - global.platform.closeCurrentWindow(); + history.push(mostRecentOverviewPage); }); }; @@ -420,6 +419,7 @@ export default function TokenAllowance({