|
|
|
@ -403,45 +403,37 @@ export default class ConfirmTransactionBase extends Component { |
|
|
|
|
</div> |
|
|
|
|
) : null; |
|
|
|
|
|
|
|
|
|
const renderLedgerLiveStep = (text, show = true) => { |
|
|
|
|
return ( |
|
|
|
|
show && ( |
|
|
|
|
<Typography |
|
|
|
|
boxProps={{ margin: 0 }} |
|
|
|
|
color={COLORS.PRIMARY3} |
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
> |
|
|
|
|
{text} |
|
|
|
|
</Typography> |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
const ledgerInstructionField = isLedgerAccount ? ( |
|
|
|
|
<div> |
|
|
|
|
<div className="confirm-detail-row"> |
|
|
|
|
<Dialog type="message"> |
|
|
|
|
<div className="ledger-live-dialog"> |
|
|
|
|
<Typography |
|
|
|
|
boxProps={{ margin: 0 }} |
|
|
|
|
color={COLORS.PRIMARY3} |
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
> |
|
|
|
|
{t('ledgerLiveDialogHeader')} |
|
|
|
|
</Typography> |
|
|
|
|
{!isFirefox && ( |
|
|
|
|
<Typography |
|
|
|
|
boxProps={{ margin: 0 }} |
|
|
|
|
color={COLORS.PRIMARY3} |
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
> |
|
|
|
|
{`- ${t('ledgerLiveDialogStepOne')}`} |
|
|
|
|
</Typography> |
|
|
|
|
{renderLedgerLiveStep(t('ledgerLiveDialogHeader'))} |
|
|
|
|
{renderLedgerLiveStep( |
|
|
|
|
`- ${t('ledgerLiveDialogStepOne')}`, |
|
|
|
|
!isFirefox, |
|
|
|
|
)} |
|
|
|
|
{renderLedgerLiveStep(`- ${t('ledgerLiveDialogStepTwo')}`)} |
|
|
|
|
{renderLedgerLiveStep(`- ${t('ledgerLiveDialogStepThree')}`)} |
|
|
|
|
{renderLedgerLiveStep( |
|
|
|
|
`- ${t('ledgerLiveDialogStepFour')}`, |
|
|
|
|
Boolean(txData.txParams?.data), |
|
|
|
|
)} |
|
|
|
|
<Typography |
|
|
|
|
boxProps={{ margin: 0 }} |
|
|
|
|
color={COLORS.PRIMARY3} |
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
> |
|
|
|
|
{`- ${t('ledgerLiveDialogStepTwo')}`} |
|
|
|
|
</Typography> |
|
|
|
|
<Typography |
|
|
|
|
boxProps={{ margin: 0 }} |
|
|
|
|
color={COLORS.PRIMARY3} |
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
> |
|
|
|
|
{`- ${t('ledgerLiveDialogStepThree')}`} |
|
|
|
|
</Typography> |
|
|
|
|
</div> |
|
|
|
|
</Dialog> |
|
|
|
|
</div> |
|
|
|
|