mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-03-14 14:02:56 +01:00
- Moved all components into a single directory like nextjs - Made component names consistent with each other - Made component names consistent with their export class names - Added storybook for a few components with the aim to extend this further.
22 lines
450 B
JavaScript
22 lines
450 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
import Button from './Button'
|
|
import {MdDelete} from 'react-icons/md'
|
|
|
|
|
|
export default class DeleteStopButton extends React.Component {
|
|
static propTypes = {
|
|
onClick: PropTypes.func,
|
|
}
|
|
|
|
render() {
|
|
return <Button
|
|
className="maputnik-delete-stop"
|
|
onClick={this.props.onClick}
|
|
title={"Remove zoom level from stop"}
|
|
>
|
|
<MdDelete />
|
|
</Button>
|
|
}
|
|
}
|