2018-04-16 23:30:58 +00:00
|
|
|
import React from 'react';
|
2018-06-18 01:53:00 +00:00
|
|
|
|
2018-05-09 03:06:35 +00:00
|
|
|
import {
|
|
|
|
donationAddressMap,
|
|
|
|
socialMediaLinks,
|
|
|
|
productLinks,
|
|
|
|
affiliateLinks,
|
|
|
|
VERSION
|
|
|
|
} from 'config';
|
2018-06-18 01:53:00 +00:00
|
|
|
import translate from 'translations';
|
|
|
|
import TabSection from 'containers/TabSection';
|
2018-04-16 23:30:58 +00:00
|
|
|
import DisclaimerModal from 'components/DisclaimerModal';
|
|
|
|
import { NewTabLink } from 'components/ui';
|
|
|
|
import './index.scss';
|
|
|
|
|
|
|
|
interface State {
|
|
|
|
isDisclaimerOpen: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default class SupportPage extends React.Component<{}, State> {
|
|
|
|
public state: State = {
|
|
|
|
isDisclaimerOpen: false
|
|
|
|
};
|
|
|
|
|
|
|
|
public render() {
|
|
|
|
const donationCurrencies: ['ETH', 'BTC'] = ['ETH', 'BTC'];
|
|
|
|
|
|
|
|
return (
|
|
|
|
<TabSection>
|
|
|
|
<div className="SupportPage Tab-content container">
|
|
|
|
<div className="row">
|
|
|
|
<div className="col-xs-12">
|
|
|
|
<div className="SupportPage-mycrypto Tab-content-pane">
|
2018-06-27 04:51:42 +00:00
|
|
|
<div className="SupportPage-mycrypto-logo" />
|
2018-04-16 23:30:58 +00:00
|
|
|
<p className="SupportPage-mycrypto-about">{translate('FOOTER_ABOUT')}</p>
|
|
|
|
|
|
|
|
<div className="SupportPage-mycrypto-social">
|
|
|
|
{socialMediaLinks.map(link => (
|
|
|
|
<NewTabLink
|
|
|
|
className="SupportPage-mycrypto-social-link"
|
|
|
|
href={link.link}
|
|
|
|
aria-label={link.text}
|
|
|
|
>
|
|
|
|
<i className={`sm-icon sm-logo-${link.text}`} />
|
|
|
|
</NewTabLink>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="SupportPage-mycrypto-legal">
|
|
|
|
<div className="SupportPage-mycrypto-legal-text">
|
|
|
|
© {new Date().getFullYear()} MyCrypto, Inc.
|
|
|
|
</div>
|
|
|
|
<div className="SupportPage-mycrypto-legal-text">
|
|
|
|
<a onClick={this.openDisclaimer}>{translate('DISCLAIMER')}</a>
|
|
|
|
</div>
|
2018-05-09 03:06:35 +00:00
|
|
|
<div className="SupportPage-mycrypto-legal-text">v{VERSION}</div>
|
2018-04-16 23:30:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="row">
|
|
|
|
<div className="col-md-6 col-sm-6 col-xs-12">
|
|
|
|
<div className="SupportPage-products Tab-content-pane">
|
|
|
|
<h3 className="SupportPage-products-title">{translate('FOOTER_OTHER_APPS')}</h3>
|
|
|
|
|
|
|
|
{productLinks.map(link => (
|
|
|
|
<NewTabLink
|
|
|
|
className="SupportPage-products-link btn btn-block btn-default"
|
|
|
|
href={link.link}
|
|
|
|
>
|
|
|
|
{link.text}
|
|
|
|
</NewTabLink>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="col-md-6 col-sm-6 col-xs-12">
|
|
|
|
<div className="SupportPage-affiliates Tab-content-pane">
|
|
|
|
<h3 className="SupportPage-affiliates-title">
|
|
|
|
{translate('FOOTER_AFFILIATE_TITLE')}
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
{affiliateLinks.map(link => (
|
|
|
|
<NewTabLink
|
|
|
|
className="SupportPage-affiliates-link btn btn-block btn-default"
|
|
|
|
href={link.link}
|
|
|
|
>
|
|
|
|
{link.text}
|
|
|
|
</NewTabLink>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="row">
|
|
|
|
<div className="col-xs-12">
|
|
|
|
<div className="SupportPage-donate Tab-content-pane">
|
|
|
|
<h3 className="SupportPage-donate-title">{translate('FOOTER_DONATIONS')}</h3>
|
|
|
|
|
|
|
|
<div className="row">
|
|
|
|
{donationCurrencies.map(currency => (
|
|
|
|
<div className="col-sm-6 col-xs-12">
|
|
|
|
<div className="SupportPage-donate-type">
|
|
|
|
<div className="SupportPage-donate-type-currency">
|
|
|
|
<span
|
|
|
|
className={`SupportPage-donate-type-currency-icon is-${currency}`}
|
|
|
|
/>
|
|
|
|
{`${currency} `}
|
|
|
|
{translate('TOKEN_ADDR')}
|
|
|
|
</div>
|
|
|
|
<span className="SupportPage-donate-type-address">
|
|
|
|
{donationAddressMap[currency]}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<DisclaimerModal isOpen={this.state.isDisclaimerOpen} handleClose={this.closeDisclaimer} />
|
|
|
|
</TabSection>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
private openDisclaimer = () => this.setState({ isDisclaimerOpen: true });
|
|
|
|
private closeDisclaimer = () => this.setState({ isDisclaimerOpen: false });
|
|
|
|
}
|