2017-09-25 02:06:28 +00:00
|
|
|
import { RestartSwapAction } from 'actions/swap';
|
|
|
|
import bityLogo from 'assets/images/logo-bity.svg';
|
|
|
|
import { bityReferralURL } from 'config/data';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import translate from 'translations';
|
|
|
|
import './SwapInfoHeader.scss';
|
|
|
|
|
|
|
|
export interface SwapInfoHeaderTitleProps {
|
|
|
|
restartSwap(): RestartSwapAction;
|
|
|
|
}
|
|
|
|
|
2017-12-18 23:29:26 +00:00
|
|
|
export default class SwapInfoHeaderTitle extends Component<SwapInfoHeaderTitleProps, {}> {
|
2017-09-25 02:06:28 +00:00
|
|
|
public render() {
|
|
|
|
return (
|
|
|
|
<section className="SwapInfo-top row text-center">
|
|
|
|
<div className="col-xs-3 text-left">
|
2017-12-18 23:29:26 +00:00
|
|
|
<button className="SwapInfo-top-back" onClick={this.props.restartSwap}>
|
2017-09-25 02:06:28 +00:00
|
|
|
<i className="fa fa-arrow-left" />
|
|
|
|
Start New Swap
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div className="col-xs-6">
|
2017-12-18 23:29:26 +00:00
|
|
|
<h3 className="SwapInfo-top-title">{translate('SWAP_information')}</h3>
|
2017-09-25 02:06:28 +00:00
|
|
|
</div>
|
|
|
|
<div className="col-xs-3">
|
2017-12-18 23:29:26 +00:00
|
|
|
<a className="SwapInfo-top-logo" href={bityReferralURL} target="_blank" rel="noopener">
|
2017-09-25 02:06:28 +00:00
|
|
|
<img className="SwapInfo-top-logo-img" src={bityLogo} />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|