-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Convert all remaining Modals to use Portal (UI consistency) #4625
Conversation
onClick={ onClose } | ||
/> | ||
); | ||
|
||
if (error) { | ||
return (<div>{ cancel }</div>); | ||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're about to change it, this could be return cancel;
afaik.
js/src/ui/Actionbar/Import/import.js
Outdated
onClose={ this.onCloseModal } | ||
open | ||
steps={ | ||
hasSteps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to have this moved out. It's a little too hard to read.
js/src/ui/Portal/portal.js
Outdated
@@ -156,9 +153,13 @@ export default class Portal extends Component { | |||
handleClose = () => { | |||
const { hideClose, onClose } = this.props; | |||
|
|||
console.log('handleClose'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most likely this has stayed here by accident.
Would not like to make the console more noisy. Either use a solution like import 'debug'
or remove it.
js/src/ui/Theme/theme.js
Outdated
@@ -38,6 +38,8 @@ muiTheme.textField.hintColor = 'rgba(255, 255, 255, 0.5)'; | |||
muiTheme.textField.disabledTextColor = muiTheme.textField.textColor; | |||
muiTheme.toolbar = lightTheme.toolbar; | |||
muiTheme.toolbar.backgroundColor = 'transparent'; | |||
muiTheme.zIndex.layer = 4000; | |||
muiTheme.zIndex.popovr = 4100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
popover
. As it seemed to work before, you might be able to remove it.
} | ||
|
||
onNewWalletClose = () => { | ||
this.onNewWalletClick(); | ||
this.setState({ | ||
newWalletDialog: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
LGTM! only a few cleanups left over. |
@@ -41,7 +41,7 @@ function create () { | |||
store = new Store(api); | |||
} | |||
|
|||
describe.only('modals/DappPermissions/store', () => { | |||
describe('modals/DappPermissions/store', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't even ask, sloppy.
The layout could be nicer in some of the screens, but there are far more important issues to be tackled. |
(Also closes https://github.com/ethcore/parity/issues/4620, supercedes https://github.com/ethcore/parity/issues/4620)
TODO:
FirstRun -
CreateAccount -
CreateWallet -
Transfer -
ShapeShift -
Verification -
EditMeta -
PasswordManager -
WalletSettings -
AddAddress -
AddContract -
DeployContract -
ExecuteContract -
LoadContract -
SaveContract -
UpgradeParity -