mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-03 06:44:39 +00:00
ab5fa1a799
* Make UnlockHeader a PureComponent * MVP * actually disable wallet format if not determined to be valid format for wallet * default to correct derivation in mnemonic modal * cleanup * fix tslint * use enums for HD wallet getPath * Add stricter typing * Fix labels not updating on selector * Ban hardware wallet support for custom network unsupported chainIds * Fix type error * Fix custom node dPath not being saved * Fix mnemonic modal * default path bugfixes * add react-select * misc fixes; rabbit holing hard. * fix tslint * revert identicon changes * reload on network change :/ * actually reload on network change * really really reload on network change * tslint fixes * Update styles * set table width * fix package versioning * push broken sagas * Fix saga test * fix tslint * address round of review * move non-selectors out to utilty; adjust reload timer * cleanup network util comments * manage wallet disable at WalletDecrypt instead of in both WalletDecrypt and WalletButton * Separate WalletDecrypt props into ownProps / StateProps * disable payment requests on non-eth networks * specialize connect; separate props * remove unused state prop * remove bad import * create tests for networks * Clarify Lite-Send error on non-ethereum networkS * remove string option for network config name * Create concept of always-on 'EXTRA_PATHS'; include SINGULAR_DTV legacy dPath in 'EXTRA_PATHS' * fix multiple imports * address PR comments
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { RestartSwapAction } from 'actions/swap';
|
|
import bityLogo from 'assets/images/logo-bity.svg';
|
|
import shapeshiftLogo from 'assets/images/shapeshift-dark.svg';
|
|
import { bityReferralURL } from 'config';
|
|
import React, { Component } from 'react';
|
|
import translate from 'translations';
|
|
import './SwapInfoHeader.scss';
|
|
|
|
export interface SwapInfoHeaderTitleProps {
|
|
provider: string;
|
|
restartSwap(): RestartSwapAction;
|
|
}
|
|
|
|
export default class SwapInfoHeaderTitle extends Component<SwapInfoHeaderTitleProps, {}> {
|
|
public render() {
|
|
const { provider } = this.props;
|
|
const logoToRender = provider === 'shapeshift' ? shapeshiftLogo : bityLogo;
|
|
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 noreferrer"
|
|
>
|
|
<img className="SwapInfo-top-logo-img" src={logoToRender} />
|
|
</a>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|
|
}
|