mirror of
https://github.com/maputnik/editor.git
synced 2026-06-14 03:07:25 +00:00
Import rebass components explictly
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import Immutable from 'immutable'
|
||||
import { Input } from 'rebass'
|
||||
import Input from 'rebass/dist/Input'
|
||||
import { PropertyGroup } from '../fields/spec'
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
import React from 'react'
|
||||
import Immutable from 'immutable'
|
||||
import { Toolbar, NavItem, Space} from 'rebass'
|
||||
import Collapse from 'react-collapse'
|
||||
|
||||
import Toolbar from 'rebass/dist/Toolbar'
|
||||
import NavItem from 'rebass/dist/NavItem'
|
||||
import Space from 'rebass/dist/Space'
|
||||
|
||||
import Collapse from 'react-collapse'
|
||||
import theme from '../theme.js'
|
||||
import FillLayer from './fill.jsx'
|
||||
import LineLayer from './line.jsx'
|
||||
import SymbolLayer from './line.jsx'
|
||||
import SymbolLayer from './symbol.jsx'
|
||||
import BackgroundLayer from './background.jsx'
|
||||
|
||||
import MdVisibility from 'react-icons/lib/md/visibility'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from 'react'
|
||||
import Immutable from 'immutable'
|
||||
import { PropertyGroup } from '../fields/spec'
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
|
||||
export default class LineLayer extends React.Component {
|
||||
static propTypes = {
|
||||
@@ -9,6 +10,11 @@ export default class LineLayer extends React.Component {
|
||||
onLayoutChanged: React.PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div>
|
||||
<PropertyGroup
|
||||
|
||||
+6
-1
@@ -1,6 +1,11 @@
|
||||
import React from 'react'
|
||||
import Immutable from 'immutable'
|
||||
import { Heading, Toolbar, NavItem, Space} from 'rebass'
|
||||
|
||||
import Heading from 'rebass/dist/Heading'
|
||||
import Toolbar from 'rebass/dist/Toolbar'
|
||||
import NavItem from 'rebass/dist/NavItem'
|
||||
import Space from 'rebass/dist/Space'
|
||||
|
||||
import { LayerEditor } from './editor.jsx'
|
||||
import scrollbars from '../scrollbars.scss'
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import React from 'react'
|
||||
import Immutable from 'immutable'
|
||||
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||||
import { PropertyGroup } from '../fields/spec'
|
||||
|
||||
export default class SymbolLayer extends React.Component {
|
||||
static propTypes = {
|
||||
|
||||
Reference in New Issue
Block a user