Skip to content

Commit

Permalink
add navRoot & contentType props to BlockDataForm
Browse files Browse the repository at this point in the history
  • Loading branch information
danalvrz committed Jan 25, 2024
1 parent c278f97 commit c4537a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Data.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BlockDataForm } from '@plone/volto/components';
import { SliderSchema } from './schema';

const SliderData = (props) => {
const { block, blocksConfig, data, onChangeBlock } = props;
const { block, blocksConfig, data, onChangeBlock, navRoot, contentType } = props;
const intl = useIntl();
const schema = SliderSchema({ ...props, intl });

Expand All @@ -26,6 +26,8 @@ const SliderData = (props) => {
onChangeBlock={onChangeBlock}
formData={data}
block={block}
navRoot={navRoot}
contentType={contentType}
/>
);
};
Expand Down

0 comments on commit c4537a7

Please sign in to comment.