From 04bd8921516584a25a0bd9af15ddec3c4830265a Mon Sep 17 00:00:00 2001
From: Ricardo Guilherme Schmidt <3esmit@gmail.com>
Date: Sat, 29 Dec 2018 07:38:32 -0200
Subject: [PATCH] remove constants.js
---
app/components/ens/constants.js | 4 ----
app/components/ens/nameLookup.js | 3 +--
app/components/ens/registerSubDomain.js | 11 +++++------
3 files changed, 6 insertions(+), 12 deletions(-)
delete mode 100644 app/components/ens/constants.js
diff --git a/app/components/ens/constants.js b/app/components/ens/constants.js
deleted file mode 100644
index 5c3aba8..0000000
--- a/app/components/ens/constants.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import lang from 'i18n-js';
-
-export const YOUR_CONTACT_CODE = lang.t('constants.contact_code');
-export const YOUR_WALLET_ADDRESS = lang.t('constants.wallet_address');
diff --git a/app/components/ens/nameLookup.js b/app/components/ens/nameLookup.js
index 04b9260..3f5c76a 100644
--- a/app/components/ens/nameLookup.js
+++ b/app/components/ens/nameLookup.js
@@ -30,7 +30,6 @@ import NotInterested from '@material-ui/icons/NotInterested';
import Face from '@material-ui/icons/Face';
import IDNANormalizer from 'idna-normalize';
import { nullAddress, getResolver } from './utils/domain';
-import { YOUR_CONTACT_CODE } from './constants';
import DisplayBox from './DisplayBox';
import styled from "styled-components";
import { Route } from "react-router-dom";
@@ -104,7 +103,7 @@ const MobileAddressDisplay = ({ domainName, address, statusAccount, expirationTi
preRegisteredCallback={onSubmit}
registeredCallbackFn={console.log} />}
{!edit && }
- {!edit && validStatusAddress(statusAccount) && }
+ {!edit && validStatusAddress(statusAccount) && }
)
diff --git a/app/components/ens/registerSubDomain.js b/app/components/ens/registerSubDomain.js
index f0a99ba..ede744d 100644
--- a/app/components/ens/registerSubDomain.js
+++ b/app/components/ens/registerSubDomain.js
@@ -19,7 +19,6 @@ import Terms from './terms';
import {generateXY} from '../../utils/ecdsa';
import {getResolver} from './utils/domain';
import DisplayBox from './DisplayBox';
-import { YOUR_CONTACT_CODE, YOUR_WALLET_ADDRESS } from './constants';
import {checkAndDispatchStatusContactCode} from "../../actions/accounts";
const { soliditySha3, fromWei } = web3.utils;
@@ -140,27 +139,27 @@ class InnerForm extends React.Component {
{!editAccount ?
-
- requestStatusContactCode()}/>
:
-
+
setFieldValue('address', '')}
required
wide />
-
+