mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-15 05:24:24 +00:00
816ce3180f
* Update account view routing * Temporarily add unicode character to translated strings for testing * Temporarily select add unicode to all untranslated strings * Format changes * Add all english translations for /account & /generate * Add the rest of the english translations * Add a few more missing translations * Update en translations * Get selectedLanguage from localstorage instead of redux sttate * Update snapshots * Add missing translation keys & Update translate functs & change variable prefix * translate all markdown strings & remove old translation strings * Update snapshot * Add a few more translation strs * Move raw strings being translated into json * All translation keys are now Uppercase * Fix up the last few translations * Update snapshot * Uppercase de translation strings * Bring back shapeshift logo on swap * Fix contracts tab translations * Fix a few more translations * Fix translations * remove debugging stuff * Update snapshots * Use react.fragment as markdown root renderer * Seperate markdown translations into their own function * Clean up translation functions * Clean up translation functions * Update snapshot * Fix some broken translation strings * Add prettier ignore file
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import { RestartSwapAction } from 'actions/swap';
|
|
import bityLogo from 'assets/images/logo-bity.svg';
|
|
import shapeshiftLogo from 'assets/images/shapeshift-dark.svg';
|
|
import { shapeshiftReferralURL, bitboxReferralURL } from 'config';
|
|
import React, { PureComponent } from 'react';
|
|
import translate from 'translations';
|
|
import './SwapInfoHeader.scss';
|
|
|
|
export interface SwapInfoHeaderTitleProps {
|
|
provider: string;
|
|
restartSwap(): RestartSwapAction;
|
|
}
|
|
|
|
export default class SwapInfoHeaderTitle extends PureComponent<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" />
|
|
{translate('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={provider === 'shapeshift' ? shapeshiftReferralURL : bitboxReferralURL}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<img className="SwapInfo-top-logo-img" src={logoToRender} alt={provider + ' logo'} />
|
|
</a>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|
|
}
|