+
-
Welcome to Parity, the fastest and simplest way to run your node.
-
The next few steps will guide you through the process of setting up you Parity instance and the associated account.
-
Click Next to continue your journey.
+
+
+
+
+
+
+
+
+
+
+
+
);
}
diff --git a/js/src/modals/FirstRun/TnC/tnc.css b/js/src/modals/FirstRun/firstRun.css
similarity index 71%
rename from js/src/modals/FirstRun/TnC/tnc.css
rename to js/src/modals/FirstRun/firstRun.css
index eb040c3d0..e5e351ed1 100644
--- a/js/src/modals/FirstRun/TnC/tnc.css
+++ b/js/src/modals/FirstRun/firstRun.css
@@ -15,15 +15,33 @@
/* along with Parity. If not, see
.
*/
-.body {
+.completed,
+.welcome {
+ p {
+ line-height: 1.5em;
+ }
+
+ ul {
+ background: rgba(0, 0, 0, 0.1);
+ margin-right: 12em;
+ padding: 1em 3em;
+
+ li {
+ line-height: 2em;
+ }
+ }
+}
+
+.tnc {
overflow-y: auto;
-}
-.body p, .body li {
- opacity: 0.8;
- line-height: 1.5em;
-}
+ p,
+ li {
+ opacity: 0.8;
+ line-height: 1.5em;
+ }
-.accept {
- margin: 1.5em 0;
+ .accept {
+ margin: 1.5em 0;
+ }
}
diff --git a/js/src/modals/FirstRun/firstRun.js b/js/src/modals/FirstRun/firstRun.js
index 7f85a24a3..7a7c95c45 100644
--- a/js/src/modals/FirstRun/firstRun.js
+++ b/js/src/modals/FirstRun/firstRun.js
@@ -23,7 +23,7 @@ import { bindActionCreators } from 'redux';
import ParityLogo from '~/../assets/images/parity-logo-black-no-text.svg';
import { createIdentityImg } from '~/api/util/identity';
import { newError } from '~/redux/actions';
-import { Button, Modal } from '~/ui';
+import { Button, Portal } from '~/ui';
import { CheckIcon, DoneIcon, NextIcon, PrintIcon } from '~/ui/Icons';
import { NewAccount, AccountDetails } from '../CreateAccount';
@@ -93,14 +93,15 @@ class FirstRun extends Component {
}
return (
-
{ this.renderStage() }
-
+
);
}
diff --git a/js/src/modals/LoadContract/loadContract.js b/js/src/modals/LoadContract/loadContract.js
index 864572594..216723f7e 100644
--- a/js/src/modals/LoadContract/loadContract.js
+++ b/js/src/modals/LoadContract/loadContract.js
@@ -20,7 +20,7 @@ import moment from 'moment';
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
-import { Button, Modal } from '~/ui';
+import { Button, Portal } from '~/ui';
import Editor from '~/ui/Editor';
import { CancelIcon, CheckIcon, DeleteIcon } from '~/ui/Icons';
@@ -55,8 +55,10 @@ export default class LoadContract extends Component {
const { deleteRequest } = this.state;
return (
-
)
}
- visible
>
{ this.renderBody() }
-
+
);
}
diff --git a/js/src/modals/PasswordManager/passwordManager.css b/js/src/modals/PasswordManager/passwordManager.css
index 69ca52316..f0dfdd93f 100644
--- a/js/src/modals/PasswordManager/passwordManager.css
+++ b/js/src/modals/PasswordManager/passwordManager.css
@@ -78,6 +78,6 @@
.form {
margin-top: 0;
- padding: 0 0.5rem 1rem;
+ padding: 0.75rem 1.5rem 1.5rem 1.5rem;
background-color: rgba(255, 255, 255, 0.05);
}
diff --git a/js/src/modals/PasswordManager/passwordManager.js b/js/src/modals/PasswordManager/passwordManager.js
index d769f6838..2f5541bf1 100644
--- a/js/src/modals/PasswordManager/passwordManager.js
+++ b/js/src/modals/PasswordManager/passwordManager.js
@@ -23,7 +23,7 @@ import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { newError, openSnackbar } from '~/redux/actions';
-import { Button, Modal, IdentityName, IdentityIcon } from '~/ui';
+import { Button, IdentityName, IdentityIcon, Portal } from '~/ui';
import PasswordStrength from '~/ui/Form/PasswordStrength';
import Form, { Input } from '~/ui/Form';
import { CancelIcon, CheckIcon, SendIcon } from '~/ui/Icons';
@@ -38,7 +38,7 @@ const MSG_FAILURE_STYLE = {
backgroundColor: 'rgba(229, 115, 115, 0.75)'
};
const TABS_INKBAR_STYLE = {
- backgroundColor: 'rgba(255, 255, 255, 0.55)'
+ backgroundColor: 'rgb(0, 151, 167)' // 'rgba(255, 255, 255, 0.55)'
};
const TABS_ITEM_STYLE = {
backgroundColor: 'rgba(255, 255, 255, 0.05)'
@@ -61,20 +61,21 @@ class PasswordManager extends Component {
render () {
return (
-
}
- visible
>
{ this.renderAccount() }
{ this.renderPage() }
{ this.renderMessage() }
-
+
);
}
@@ -273,7 +274,6 @@ class PasswordManager extends Component {
renderDialogActions () {
const { actionTab, busy, isRepeatValid } = this.store;
- const { onClose } = this.props;
const cancelBtn = (
}
- onClick={ onClose }
+ onClick={ this.onClose }
/>
);
@@ -367,6 +367,10 @@ class PasswordManager extends Component {
this.store.setValidatePassword(password);
}
+ onClose = () => {
+ this.props.onClose();
+ }
+
changePassword = () => {
return this.store
.changePassword()
@@ -380,7 +384,7 @@ class PasswordManager extends Component {
/>
);
- this.props.onClose();
+ this.onClose();
}
})
.catch((error) => {
diff --git a/js/src/modals/SaveContract/saveContract.js b/js/src/modals/SaveContract/saveContract.js
index cd9285336..242ba1593 100644
--- a/js/src/modals/SaveContract/saveContract.js
+++ b/js/src/modals/SaveContract/saveContract.js
@@ -19,7 +19,7 @@ import React, { Component, PropTypes } from 'react';
import SaveIcon from 'material-ui/svg-icons/content/save';
import ContentClear from 'material-ui/svg-icons/content/clear';
-import { Button, Modal, Form, Input } from '~/ui';
+import { Button, Form, Input, Portal } from '~/ui';
import Editor from '~/ui/Editor';
import { ERRORS, validateName } from '~/util/validation';
@@ -42,10 +42,11 @@ export default class SaveContract extends Component {
const { name, nameError } = this.state;
return (
-