|
|
@ -9,8 +9,8 @@ export default function FeeCard ({ |
|
|
|
hideTokenApprovalRow, |
|
|
|
hideTokenApprovalRow, |
|
|
|
onFeeCardMaxRowClick, |
|
|
|
onFeeCardMaxRowClick, |
|
|
|
tokenApprovalTextComponent, |
|
|
|
tokenApprovalTextComponent, |
|
|
|
sourceTokenSymbol, |
|
|
|
tokenApprovalSourceTokenSymbol, |
|
|
|
onFeeCardTokenApprovalClick, |
|
|
|
onTokenApprovalClick, |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
const t = useContext(I18nContext) |
|
|
|
const t = useContext(I18nContext) |
|
|
|
|
|
|
|
|
|
|
@ -66,12 +66,12 @@ export default function FeeCard ({ |
|
|
|
<div className="fee-card__row-header-text"> |
|
|
|
<div className="fee-card__row-header-text"> |
|
|
|
{t('swapThisWillAllowApprove', [tokenApprovalTextComponent])} |
|
|
|
{t('swapThisWillAllowApprove', [tokenApprovalTextComponent])} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="fee-card__link" onClick={() => onFeeCardTokenApprovalClick()}> |
|
|
|
<div className="fee-card__link" onClick={() => onTokenApprovalClick()}> |
|
|
|
{t('swapEditLimit')} |
|
|
|
{t('swapEditLimit')} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<InfoTooltip |
|
|
|
<InfoTooltip |
|
|
|
position="top" |
|
|
|
position="top" |
|
|
|
contentText={t('swapEnableDescription', [sourceTokenSymbol])} |
|
|
|
contentText={t('swapEnableDescription', [tokenApprovalSourceTokenSymbol])} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -93,6 +93,6 @@ FeeCard.propTypes = { |
|
|
|
onFeeCardMaxRowClick: PropTypes.func.isRequired, |
|
|
|
onFeeCardMaxRowClick: PropTypes.func.isRequired, |
|
|
|
hideTokenApprovalRow: PropTypes.bool.isRequired, |
|
|
|
hideTokenApprovalRow: PropTypes.bool.isRequired, |
|
|
|
tokenApprovalTextComponent: PropTypes.node, |
|
|
|
tokenApprovalTextComponent: PropTypes.node, |
|
|
|
sourceTokenSymbol: PropTypes.string, |
|
|
|
tokenApprovalSourceTokenSymbol: PropTypes.string, |
|
|
|
onFeeCardTokenApprovalClick: PropTypes.func, |
|
|
|
onTokenApprovalClick: PropTypes.func, |
|
|
|
} |
|
|
|
} |
|
|
|