diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/map/add-point/index.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/map/add-point/index.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/plugins/jetpack/extensions/blocks/map/add-point/index.js b/plugins/jetpack/extensions/blocks/map/add-point/index.js deleted file mode 100644 index a4c6e2e1..00000000 --- a/plugins/jetpack/extensions/blocks/map/add-point/index.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * External dependencies - */ -import { __ } from '@wordpress/i18n'; -import { Component } from '@wordpress/element'; -import { Button, Dashicon, Popover } from '@wordpress/components'; - -/** - * Internal dependencies - */ -import './style.scss'; -import LocationSearch from '../location-search'; - -export class AddPoint extends Component { - render() { - const { onClose, onAddPoint, onError, apiKey } = this.props; - return ( - <Button className="component__add-point"> - { __( 'Add marker', 'jetpack' ) } - <Popover className="component__add-point__popover"> - <Button className="component__add-point__close" onClick={ onClose }> - <Dashicon icon="no" /> - </Button> - <LocationSearch - onAddPoint={ onAddPoint } - label={ __( 'Add a location', 'jetpack' ) } - apiKey={ apiKey } - onError={ onError } - /> - </Popover> - </Button> - ); - } -} - -AddPoint.defaultProps = { - onAddPoint: () => {}, - onClose: () => {}, - onError: () => {}, -}; - -export default AddPoint; |