2018-01-22 12:24:05 +00:00
|
|
|
import React from 'react';
|
2018-02-08 17:30:30 +00:00
|
|
|
import { NameInput, NameResolve } from './components';
|
2018-01-22 12:24:05 +00:00
|
|
|
import TabSection from 'containers/TabSection';
|
|
|
|
import { NewTabLink } from 'components/ui';
|
2018-02-07 04:28:28 +00:00
|
|
|
import { donationAddressMap } from 'config';
|
2018-02-08 17:30:30 +00:00
|
|
|
import './index.scss';
|
2017-09-04 00:04:27 +00:00
|
|
|
|
2018-01-22 12:24:05 +00:00
|
|
|
const ENSDocsLink = () => (
|
|
|
|
<NewTabLink
|
2018-02-01 22:51:15 +00:00
|
|
|
href="https://ens.readthedocs.io/en/latest/introduction.html"
|
2018-01-22 12:24:05 +00:00
|
|
|
content="Ethereum Name Service"
|
|
|
|
/>
|
|
|
|
);
|
2017-09-04 00:04:27 +00:00
|
|
|
|
2018-02-08 17:30:30 +00:00
|
|
|
export default class ENSClass extends React.Component<{}> {
|
2018-01-22 12:24:05 +00:00
|
|
|
public render() {
|
|
|
|
return (
|
|
|
|
<TabSection isUnavailableOffline={true}>
|
2018-02-08 17:30:30 +00:00
|
|
|
<div className="Tab-content">
|
|
|
|
<section className="Tab-content-pane">
|
|
|
|
<div className="ENS">
|
|
|
|
<h1 className="ENS-title">Ethereum Name Service</h1>
|
|
|
|
<p className="ENS-description">
|
|
|
|
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>
|
|
|
|
|
|
|
|
<NameInput />
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<NameResolve />
|
|
|
|
</div>
|
2018-01-22 12:24:05 +00:00
|
|
|
</TabSection>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|