diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
commit | 10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch) | |
tree | b4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/extensions/blocks/map/save.js | |
parent | Updating script for Update (diff) | |
download | blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2 blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip |
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/extensions/blocks/map/save.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/map/save.js | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/jetpack/extensions/blocks/map/save.js b/plugins/jetpack/extensions/blocks/map/save.js deleted file mode 100644 index ffa82641..00000000 --- a/plugins/jetpack/extensions/blocks/map/save.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * External dependencies - */ - -import { Component } from '@wordpress/element'; - -class MapSave extends Component { - render() { - const { attributes } = this.props; - const { align, mapStyle, mapDetails, points, zoom, mapCenter, markerColor } = attributes; - const pointsList = points.map( ( point, index ) => { - const { longitude, latitude } = point.coordinates; - const url = 'https://www.google.com/maps/search/?api=1&query=' + latitude + ',' + longitude; - return ( - <li key={ index }> - <a href={ url }>{ point.title }</a> - </li> - ); - } ); - const alignClassName = align ? `align${ align }` : null; - // All camelCase attribute names converted to snake_case data attributes - return ( - <div - className={ alignClassName } - data-map-style={ mapStyle } - data-map-details={ mapDetails } - data-points={ JSON.stringify( points ) } - data-zoom={ zoom } - data-map-center={ JSON.stringify( mapCenter ) } - data-marker-color={ markerColor } - > - { points.length > 0 && <ul>{ pointsList }</ul> } - </div> - ); - } -} - -export default MapSave; |