mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 08:00:01 +00:00
Tidy
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Wrapper, Button, Menu, MenuItem } from 'react-aria-menubutton'
|
||||
import classnames from 'classnames'
|
||||
|
||||
import JSONEditor from './JSONEditor'
|
||||
import FilterEditor from '../filter/FilterEditor'
|
||||
@@ -181,7 +180,7 @@ export default class LayerEditor extends React.Component {
|
||||
}
|
||||
|
||||
moveLayer(offset) {
|
||||
this.props.onSortEnd({
|
||||
this.props.onMoveLayer({
|
||||
oldIndex: this.props.layerIndex,
|
||||
newIndex: this.props.layerIndex+offset
|
||||
})
|
||||
@@ -250,7 +249,7 @@ export default class LayerEditor extends React.Component {
|
||||
closeOnSelection={false}
|
||||
>
|
||||
<Button className='more-menu__button'>
|
||||
<MoreVertIcon width="22px" height="22px" />
|
||||
<MoreVertIcon className="more-menu__button__svg" />
|
||||
</Button>
|
||||
<Menu>
|
||||
<ul className="more-menu__menu">
|
||||
|
||||
@@ -208,7 +208,7 @@ export default class LayerList extends React.Component {
|
||||
render() {
|
||||
return <LayerListContainer
|
||||
{...this.props}
|
||||
onSortEnd={this.props.onSortEnd.bind(this)}
|
||||
onSortEnd={this.props.onMoveLayer.bind(this)}
|
||||
useDragHandle={true}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user