Skip to content

Commit

Permalink
Merge pull request #3 from codesyntax/develop
Browse files Browse the repository at this point in the history
add also fixed class name to the block
  • Loading branch information
erral authored Mar 26, 2024
2 parents e80fd2f + 1066da6 commit 258e2f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/3.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add classes 'block' and 'maplibre' to the block @erral
3 changes: 2 additions & 1 deletion src/components/Blocks/MaplibreBlock/View.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { MapLibre } from '../../MapLibre';
import cx from 'classnames';
import { withBlockExtensions } from '@plone/volto/helpers';

const MaplibreBlockView = (props) => {
Expand All @@ -15,7 +16,7 @@ const MaplibreBlockView = (props) => {
data?.markers?.filter((item) => item.latitude && item.longitude) || [];

return (
<div className={className}>
<div className={cx('block maplibre', className)}>
<MapLibre
markers={markers}
center={center}
Expand Down

0 comments on commit 258e2f4

Please sign in to comment.