From 799df99bd0fb0758dbfe3c5e8d5af249b5fa17f4 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Wed, 14 Oct 2020 10:12:35 -0700 Subject: [PATCH] Rename some props --- ui/app/pages/swaps/fee-card/fee-card.js | 12 ++++++------ ui/app/pages/swaps/view-quote/view-quote.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/app/pages/swaps/fee-card/fee-card.js b/ui/app/pages/swaps/fee-card/fee-card.js index f62f87120..61c173015 100644 --- a/ui/app/pages/swaps/fee-card/fee-card.js +++ b/ui/app/pages/swaps/fee-card/fee-card.js @@ -9,8 +9,8 @@ export default function FeeCard ({ hideTokenApprovalRow, onFeeCardMaxRowClick, tokenApprovalTextComponent, - sourceTokenSymbol, - onFeeCardTokenApprovalClick, + tokenApprovalSourceTokenSymbol, + onTokenApprovalClick, }) { const t = useContext(I18nContext) @@ -66,12 +66,12 @@ export default function FeeCard ({
{t('swapThisWillAllowApprove', [tokenApprovalTextComponent])}
-
onFeeCardTokenApprovalClick()}> +
onTokenApprovalClick()}> {t('swapEditLimit')}
@@ -93,6 +93,6 @@ FeeCard.propTypes = { onFeeCardMaxRowClick: PropTypes.func.isRequired, hideTokenApprovalRow: PropTypes.bool.isRequired, tokenApprovalTextComponent: PropTypes.node, - sourceTokenSymbol: PropTypes.string, - onFeeCardTokenApprovalClick: PropTypes.func, + tokenApprovalSourceTokenSymbol: PropTypes.string, + onTokenApprovalClick: PropTypes.func, } diff --git a/ui/app/pages/swaps/view-quote/view-quote.js b/ui/app/pages/swaps/view-quote/view-quote.js index f4c9d48b3..a94b2319b 100644 --- a/ui/app/pages/swaps/view-quote/view-quote.js +++ b/ui/app/pages/swaps/view-quote/view-quote.js @@ -514,8 +514,8 @@ export default function ViewQuote () { !approveTxParams || (balanceError && !warningHidden) } tokenApprovalTextComponent={tokenApprovalTextComponent} - sourceTokenSymbol={sourceTokenSymbol} - onFeeCardTokenApprovalClick={onFeeCardTokenApprovalClick} + tokenApprovalSourceTokenSymbol={sourceTokenSymbol} + onTokenApprovalClick={onFeeCardTokenApprovalClick} />