Skip to content

Commit

Permalink
feat: make className prop available to View component
Browse files Browse the repository at this point in the history
  • Loading branch information
danalvrz committed Jul 19, 2023
1 parent b4fd851 commit 8c12c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/manage/Blocks/Accordion/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import config from '@plone/volto/registry';
import './editor.less';

const View = (props) => {
const { data } = props;
const { data, className } = props;
const location = useLocation();
const panels = getPanels(data.data);
const metadata = props.metadata || props.properties;
Expand Down Expand Up @@ -46,7 +46,7 @@ const View = (props) => {
}, [data.collapsed]);

return (
<div className="accordion-block">
<div className={cx('accordion-block', className)}>
{data.headline && <h2 className="headline">{data.headline}</h2>}
{panels.map(([id, panel], index) => {
return accordionBlockHasValue(panel) ? (
Expand Down

0 comments on commit 8c12c28

Please sign in to comment.