Skip to content

Commit

Permalink
Use RenderBlocks component
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 21, 2020
1 parent b65e4f7 commit d57e2c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ColumnsBlock/ColumnsBlockView.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import { Grid } from 'semantic-ui-react';
import { renderBlocks } from '@plone/volto/helpers';
// import { renderBlocks } from '@plone/volto/helpers';
import { getColumns, empty } from './utils';
import { RenderBlocks } from '@plone/volto/components';

const ColumnsBlockView = (props) => {
const { coldata = empty(), block_title } = props.data;
Expand All @@ -14,7 +15,7 @@ const ColumnsBlockView = (props) => {
return (
<Grid.Column className="demo-column" key={id}>
<h4>{`Column ${index}`}</h4>
{renderBlocks(column, props)}
<RenderBlocks {...props} content={column} />
</Grid.Column>
);
})}
Expand Down

0 comments on commit d57e2c1

Please sign in to comment.