From 63668ba23225d947d7c493d767b1758b056d3bb2 Mon Sep 17 00:00:00 2001 From: Aleksandr Pantiukhov Date: Thu, 4 Oct 2018 13:26:22 +0300 Subject: [PATCH] [#22]: Redesign error screen for user not on mainnet --- app/components/ens/nameLookup.js | 9 +-- app/components/standard/NoConnection.js | 96 ------------------------- app/components/standard/Web3Render.js | 4 +- app/components/standard/style.js | 68 ------------------ app/ui/components/Warning.js | 22 ++++++ 5 files changed, 26 insertions(+), 173 deletions(-) delete mode 100644 app/components/standard/NoConnection.js delete mode 100644 app/components/standard/style.js create mode 100644 app/ui/components/Warning.js diff --git a/app/components/ens/nameLookup.js b/app/components/ens/nameLookup.js index 2358c93..880d302 100644 --- a/app/components/ens/nameLookup.js +++ b/app/components/ens/nameLookup.js @@ -23,7 +23,7 @@ import StatusLogo from '../../ui/icons/components/StatusLogo' import EnsLogo from '../../ui/icons/logos/ens.png'; import { formatPrice } from '../ens/utils'; import CheckCircle from '../../ui/icons/components/baseline_check_circle_outline.png'; -import WarningIcon from '../../ui/icons/svg/warning.svg'; +import Warning from '../../ui/components/Warning'; const { getPrice, getExpirationTime, release } = UsernameRegistrar.methods; import NotInterested from '@material-ui/icons/NotInterested'; import Face from '@material-ui/icons/Face'; @@ -297,12 +297,7 @@ const LookupForm = ({ handleSubmit, values, handleChange, justSearch }) => ( onChange={handleChange} required wide /> - {!justSearch && -
- - Names are made with
letters and numbers only -
- } + {!justSearch && Names are made with
letters and numbers only
}