47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
|
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;
|
||
|
}
|
||
|
|
||
|
export default class SwapInfoHeaderTitle extends Component<
|
||
|
SwapInfoHeaderTitleProps,
|
||
|
{}
|
||
|
> {
|
||
|
public render() {
|
||
|
return (
|
||
|
<section className="SwapInfo-top row text-center">
|
||
|
<div className="col-xs-3 text-left">
|
||
|
<button
|
||
|
className="SwapInfo-top-back"
|
||
|
onClick={this.props.restartSwap}
|
||
|
>
|
||
|
<i className="fa fa-arrow-left" />
|
||
|
Start New Swap
|
||
|
</button>
|
||
|
</div>
|
||
|
<div className="col-xs-6">
|
||
|
<h3 className="SwapInfo-top-title">
|
||
|
{translate('SWAP_information')}
|
||
|
</h3>
|
||
|
</div>
|
||
|
<div className="col-xs-3">
|
||
|
<a
|
||
|
className="SwapInfo-top-logo"
|
||
|
href={bityReferralURL}
|
||
|
target="_blank"
|
||
|
rel="noopener"
|
||
|
>
|
||
|
<img className="SwapInfo-top-logo-img" src={bityLogo} />
|
||
|
</a>
|
||
|
</div>
|
||
|
</section>
|
||
|
);
|
||
|
}
|
||
|
}
|