1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00

Remove object spread syntax

This commit is contained in:
Dan Finlay 2017-07-26 15:10:50 -07:00
parent 8e2da52e64
commit bc65484e1b

View File

@ -2,6 +2,7 @@ const Component = require('react').Component
const PropTypes = require('react').PropTypes
const h = require('react-hyperscript')
const MenuDroppo = require('menu-droppo')
const extend = require('xtend')
const noop = () => {}
@ -9,6 +10,13 @@ class Dropdown extends Component {
render () {
const { isOpen, onClickOutside, style, innerStyle, children } = this.props
const innerStyleDefaults = extend({
borderRadius: '4px',
padding: '8px 16px',
background: 'rgba(0, 0, 0, 0.8)',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
}, innerStyle)
return h(
MenuDroppo,
{
@ -16,13 +24,7 @@ class Dropdown extends Component {
zIndex: 11,
onClickOutside,
style,
innerStyle: {
borderRadius: '4px',
padding: '8px 16px',
background: 'rgba(0, 0, 0, 0.8)',
boxShadow: 'rgba(0, 0, 0, 0.15) 0px 2px 2px 2px',
...innerStyle,
},
innerStyle: innerStyleDefaults,
},
[
h(