diff --git a/js/src/dapps/registry/Application/application.css b/js/src/dapps/registry/Application/application.css index c5a54040e0e..ebdb23baaf2 100644 --- a/js/src/dapps/registry/Application/application.css +++ b/js/src/dapps/registry/Application/application.css @@ -37,3 +37,15 @@ font-size: 80%; background-color: #f0f0f0; } + +.actions { + margin: 1em; + + * { + font-size: 1.3rem !important; + } + + > * { + padding-bottom: 0 !important; + } +} diff --git a/js/src/dapps/registry/Application/application.js b/js/src/dapps/registry/Application/application.js index 4b9561e7dec..e763069a5d6 100644 --- a/js/src/dapps/registry/Application/application.js +++ b/js/src/dapps/registry/Application/application.js @@ -20,6 +20,7 @@ import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; const muiTheme = getMuiTheme(lightBaseTheme); import CircularProgress from 'material-ui/CircularProgress'; +import { Card, CardText } from 'material-ui/Card'; import styles from './application.css'; import Accounts from '../Accounts'; import Events from '../Events'; @@ -57,9 +58,7 @@ export default class Application extends Component { accounts, contacts, contract, fee, lookup, - events, - names, - records + events } = this.props; return ( @@ -71,8 +70,9 @@ export default class Application extends Component { { contract && fee ? (
The Registry is provided by the contract at { contract.address }.
@@ -85,4 +85,34 @@ export default class Application extends Component {
);
}
+ renderActions () {
+ const {
+ actions,
+ accounts,
+ fee,
+ names,
+ records
+ } = this.props;
+
+ const hasAccount = !!accounts.selected;
+
+ if (!hasAccount) {
+ return (
+
Please select an account first.
) - : (action === 'reserve' - ? (
- The fee to reserve a name is { fromWei(fee).toFixed(3) }
ETH.
-
To drop a name, you have to be the owner.
) - ) + { (action === 'reserve' + ? (
+ The fee to reserve a name is { fromWei(fee).toFixed(3) }
ETH.
+
To drop a name, you have to be the owner.
) + ) }Please select an account first.
) - : (You can only modify entries of names that you previously registered.
) - } ++ You can only modify entries of names that you previously registered. +
+