@kitconcept/volto-button-block
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -11,2 +11,8 @@ # kitconcept's volto-button-block Release Notes | ||
## 3.0.3 (2024-10-18) | ||
### Bugfix | ||
- Fix style wrapper in view and props passed to the legacy wrapper @sneridagh [#23](https://github.com/kitconcept/volto-button-block/pull/23) | ||
## 3.0.2 (2024-10-08) | ||
@@ -13,0 +19,0 @@ |
{ | ||
"name": "@kitconcept/volto-button-block", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "volto-button-block: Volto add-on that provides a configurable button as a block.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,5 +15,5 @@ import React from 'react'; | ||
const LegacyWrapper = (props) => ( | ||
<div className={cx('block __button', props.className)}> | ||
<div className={cx('block __button', props.className)} style={props.style}> | ||
<div className="button container"> | ||
<div className={cx(`align ${props.data?.inneralign}`)}> | ||
<div className={cx('align', props.data?.inneralign)}> | ||
{props.children} | ||
@@ -25,3 +25,4 @@ </div> | ||
const View = ({ data, isEditMode, className, blocksConfig }) => { | ||
const View = (props) => { | ||
const { data, isEditMode, blocksConfig } = props; | ||
const [hasLink, setHasLink] = React.useState(false); | ||
@@ -63,3 +64,3 @@ const intl = useIntl(); | ||
return ( | ||
<MaybeWrap condition={!isBlockModelv3} as={LegacyWrapper}> | ||
<MaybeWrap {...props} condition={!isBlockModelv3} as={LegacyWrapper}> | ||
{link} | ||
@@ -66,0 +67,0 @@ </MaybeWrap> |
Sorry, the diff of this file is not supported yet
30217
382