//flow import React, { Component } from 'react'; import translate from 'translations'; export type StateProps = { numberOfConfirmations: number, destinationKind: string, originKind: string, orderStep: number }; export default class SwapProgress extends Component { props: StateProps; computedClass(i: number) { const { orderStep } = this.props; let cssClass = 'progress-item'; if (orderStep > i) { cssClass += ' progress-true'; } else if (i === orderStep) { cssClass += ' progress-active'; } return cssClass; } render() { const { numberOfConfirmations, destinationKind, originKind } = this.props; return (
1

{translate('SWAP_progress_1')}

2

{translate('SWAP_progress_2')} {originKind}...

3

{originKind} {translate('SWAP_progress_3')}

4

Sending your {destinationKind}
Waiting for {numberOfConfirmations} confirmations...

5

Order Complete

); } }