Skip to content

Commit

Permalink
add also fixed class name to the block
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 26, 2024
1 parent 963740b commit 33df4fb
Showing 1 changed file with 2 additions and 1 deletion.
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 33df4fb

Please sign in to comment.