Skip to content

Commit

Permalink
add wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ionlizarazu committed Mar 14, 2024
1 parent 931ab08 commit 133b818
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/View.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import config from '@plone/volto/registry';
import CountUp from 'react-countup';
import cx from 'classnames';
import { Segment } from 'semantic-ui-react';
import { withBlockExtensions } from '@plone/volto/helpers';

Expand Down Expand Up @@ -49,7 +50,10 @@ const CountUpBlockView = ({ data, className }) => {
const TitleTag = titleTag || 'h2';

return (
<Segment className={className} {...segmentData}>
<Segment
className={cx('countup-block-wrapper', className)}
{...segmentData}
>
{title && titlePosition === 'above' && <TitleTag>{title}</TitleTag>}

<CountUp {...data} {...countUpData} />
Expand Down

0 comments on commit 133b818

Please sign in to comment.