Broke <FunctionSpecField/> into smaller parts.

This commit is contained in:
orangemug
2017-11-17 17:17:53 +00:00
parent 135ef8ed89
commit 030d469d7c
8 changed files with 470 additions and 349 deletions

View File

@@ -0,0 +1,25 @@
import React from 'react'
import PropTypes from 'prop-types'
import DocLabel from './DocLabel'
import Button from '../Button'
import DeleteIcon from 'react-icons/lib/md/delete'
export default class DeleteStopButton extends React.Component {
static propTypes = {
onClick: PropTypes.func,
}
render() {
return <Button
className="maputnik-delete-stop"
onClick={this.props.onClick}
>
<DocLabel
label={<DeleteIcon />}
doc={"Remove zoom level stop."}
/>
</Button>
}
}