maputnik/src/components/_DeleteStopButton.jsx
orangemug 624ccb5b00 Tidy of components
- 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.
2020-06-01 16:09:32 +01:00

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>
}
}