mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-23 15:48:11 +00:00
* Fix redux store configuration * Setup i18n * Add welcome page french and english translation * Rename languages files * Add optimized translation * Add Ethereum network error message translation * Add top navbar translation * Add constants translation * Add move domain translation * Add translation to add domain * Add name lookup translation * Add display box translation * Add edit options translation * Add register sub domain translation * Add release domain translation * Add setup ens translation * Add update controller translation * Add test token translation * Add erc20 token translation * Add ens sub management translation * Add admin mode translation * Add terms translation
76 lines
2.2 KiB
JavaScript
76 lines
2.2 KiB
JavaScript
import lang from 'i18n-js';
|
|
import styled from 'styled-components';
|
|
import React from 'react';
|
|
import Dialog from '@material-ui/core/Dialog';
|
|
import { ArrowButton } from '../../ui/components';
|
|
|
|
const TermsContainer = styled.div`
|
|
word-wrap: break-word;
|
|
`;
|
|
|
|
const TermsDescription = styled.div`
|
|
padding: 24px;
|
|
font-size: 14px;
|
|
line-height: 20.5px;
|
|
`;
|
|
|
|
const InfoHeading = styled.h2`
|
|
line-height: 26px;
|
|
font-size: 22px;
|
|
text-align: center;
|
|
letter-spacing: -0.275px;
|
|
padding: 40px 24px;
|
|
background: #EEF2F5;
|
|
margin: 0;
|
|
color: #000000;
|
|
`;
|
|
|
|
const ListContainer = styled.ul`
|
|
padding-left: 16px;
|
|
|
|
li {
|
|
margin-bottom: 16px;
|
|
padding-left: 12px;
|
|
}
|
|
`;
|
|
|
|
const Terms = ({ open, onSubmit }) => (
|
|
<Dialog fullScreen open={open}>
|
|
<TermsContainer>
|
|
<InfoHeading className="ens-terms__title">{lang.t('terms.title')}</InfoHeading>
|
|
<TermsDescription>
|
|
<ListContainer>
|
|
<li>{lang.t('terms.funds_deposit')}</li>
|
|
<li>{lang.t('terms.funds_release')}</li>
|
|
<li>{lang.t('terms.names_creation', { stateofus: <i>stateofus.eth</i> })}</li>
|
|
<li>{lang.t('terms.contract', { stateofus: <i>stateofus.eth</i> })}</li>
|
|
<li>{lang.t('terms.rule.title')}
|
|
<ol type="1">
|
|
<li>{lang.t('terms.rule.one')}</li>
|
|
<li>{lang.t('terms.rule.two')}</li>
|
|
<li>{lang.t('terms.rule.three')}</li>
|
|
<li>{lang.t('terms.rule.four', { reserved_list_link: <a href="https://github.com/status-im/ens-usernames/blob/master/config/ens-usernames/reservedNames.js">{lang.t('terms.reserved_list')}</a> })}</li>
|
|
<li>{lang.t('terms.rule.five', { eth_address: <code>Ox</code> })}</li>
|
|
</ol>
|
|
</li>
|
|
<li>{lang.t('terms.illegal_name')}</li>
|
|
<li>{lang.t('terms.contact')}</li>
|
|
</ListContainer>
|
|
</TermsDescription>
|
|
|
|
<div
|
|
style={{
|
|
display: 'flex', flexDirection: 'row-reverse', marginBottom: '16px', marginRight: '8px',
|
|
}}
|
|
>
|
|
<ArrowButton type="submit" onClick={onSubmit}>
|
|
<div>{lang.t('action.send_snt')}</div>
|
|
</ArrowButton>
|
|
</div>
|
|
|
|
</TermsContainer>
|
|
</Dialog>
|
|
);
|
|
|
|
export default Terms;
|