1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Rename some props

This commit is contained in:
Erik Marks 2020-10-14 10:12:35 -07:00
parent b31816d6f7
commit 799df99bd0
2 changed files with 8 additions and 8 deletions

View File

@ -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 ({
<div className="fee-card__row-header-text">
{t('swapThisWillAllowApprove', [tokenApprovalTextComponent])}
</div>
<div className="fee-card__link" onClick={() => onFeeCardTokenApprovalClick()}>
<div className="fee-card__link" onClick={() => onTokenApprovalClick()}>
{t('swapEditLimit')}
</div>
<InfoTooltip
position="top"
contentText={t('swapEnableDescription', [sourceTokenSymbol])}
contentText={t('swapEnableDescription', [tokenApprovalSourceTokenSymbol])}
/>
</div>
</div>
@ -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,
}

View File

@ -514,8 +514,8 @@ export default function ViewQuote () {
!approveTxParams || (balanceError && !warningHidden)
}
tokenApprovalTextComponent={tokenApprovalTextComponent}
sourceTokenSymbol={sourceTokenSymbol}
onFeeCardTokenApprovalClick={onFeeCardTokenApprovalClick}
tokenApprovalSourceTokenSymbol={sourceTokenSymbol}
onTokenApprovalClick={onFeeCardTokenApprovalClick}
/>
</div>
</div>