Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsekulic committed Sep 23, 2022
1 parent e1d482e commit df35fa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions ui/pages/token-allowance/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%;
}
Expand Down
6 changes: 3 additions & 3 deletions ui/pages/token-allowance/token-allowance.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export default function TokenAllowance({
const networkName = NETWORK_TO_NAME_MAP[txData.chainId] || networkIdentifier;

const customNonceValue = '';

const customNonceMerge = (transactionData) =>
customNonceValue
? {
Expand All @@ -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);
});
};

Expand Down Expand Up @@ -420,6 +419,7 @@ export default function TokenAllowance({
<Button
type="link"
onClick={() => setShowFullTxDetails(!showFullTxDetails)}
className="token-allowance-container__view-details"
>
<Typography
variant={TYPOGRAPHY.H6}
Expand Down

0 comments on commit df35fa8

Please sign in to comment.