mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
e7633c6d2f
* Replace all mentions of MyEtherWallet in translations with MyCrypto * Replace all translation mentions of kvhnuke/etherwallet repo with MyCryptoHQ/MyCrypto repo. * Replace all instances of MEW with MyCrypto in translations. * Replace all instances of myetherwallet.com with mycrypto.com * First pass of myetherwallet -> mycrypto in codebase. * Replace most MEWs and mews with MyCrypto or MyC or myc * Update all assets, clean out unused old assets. * Adjust v3 url * Convert all links to help articles to a help link component to make future changes easier. * Rework onboarding images * Adjust logo colors due to CMY issue. * Update donation address, remove mentions of mewtopia.eth * Update license * Update sosh meed and referral links. * Fix more translations strings. * Tscheck fix. * Update shapeshift api key.
74 lines
2.3 KiB
TypeScript
74 lines
2.3 KiB
TypeScript
import React from 'react';
|
|
import { GeneralInfoPanel, NameInput, NameResolve } from './components';
|
|
import TabSection from 'containers/TabSection';
|
|
import { Route, Switch, RouteComponentProps } from 'react-router';
|
|
import { RouteNotFound } from 'components/RouteNotFound';
|
|
import { NewTabLink } from 'components/ui';
|
|
import { donationAddressMap } from 'config';
|
|
import translate from 'translations';
|
|
import { connect } from 'react-redux';
|
|
import { resolveDomainRequested, TResolveDomainRequested } from 'actions/ens';
|
|
import { AppState } from 'reducers';
|
|
|
|
const ENSDocsLink = () => (
|
|
<NewTabLink
|
|
href="https://ens.readthedocs.io/en/latest/introduction.html"
|
|
content="Ethereum Name Service"
|
|
/>
|
|
);
|
|
|
|
const ENSTitle = () => (
|
|
<article className="cont-md">
|
|
<h1 className="text-center">{translate('NAV_ENS')}</h1>
|
|
<p>
|
|
The <ENSDocsLink /> is a distributed, open, and extensible naming system based on the Ethereum
|
|
blockchain. Once you have a name, you can tell your friends to send ETH to{' '}
|
|
<code>ensdomain.eth</code> instead of
|
|
<code>{donationAddressMap.ETH.substr(0, 12)}...</code>
|
|
</p>
|
|
</article>
|
|
);
|
|
|
|
interface StateProps {
|
|
ens: AppState['ens'];
|
|
}
|
|
|
|
interface DispatchProps {
|
|
resolveDomainRequested: TResolveDomainRequested;
|
|
}
|
|
|
|
type Props = StateProps & DispatchProps;
|
|
|
|
class ENSClass extends React.Component<RouteComponentProps<any> & Props> {
|
|
public render() {
|
|
const { match } = this.props;
|
|
const currentPath = match.url;
|
|
return (
|
|
<TabSection isUnavailableOffline={true}>
|
|
<section className="container">
|
|
<Switch>
|
|
<Route
|
|
exact={true}
|
|
path={currentPath}
|
|
render={() => (
|
|
<section role="main" className="row">
|
|
<ENSTitle />
|
|
<NameInput resolveDomainRequested={this.props.resolveDomainRequested} />
|
|
<NameResolve {...this.props.ens} />
|
|
<GeneralInfoPanel />
|
|
</section>
|
|
)}
|
|
/>
|
|
<RouteNotFound />
|
|
</Switch>
|
|
</section>
|
|
</TabSection>
|
|
);
|
|
}
|
|
}
|
|
|
|
const mapStateToProps = (state: AppState): StateProps => ({ ens: state.ens });
|
|
const mapDispatchToProps: DispatchProps = { resolveDomainRequested };
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ENSClass);
|