Skip to content

Commit

Permalink
feat: Integration with @kitconcept/volto-blocks-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Jul 15, 2022
1 parent 6f9dd23 commit c7a38fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ const applyConfig = (config) => {
...config.blocks.groupBlocksOrder,
{ id: 'twitter', title: 'Twitter' },
];
// Check for @kitconcept/volto-blocks-grid
const gridBlock = config.blocks.blocksConfig.__grid;
console.log(config.blocks.blocksConfig);
if (gridBlock !== undefined) {
config.blocks.blocksConfig.__grid.gridAllowedBlocks = [
...gridBlock.gridAllowedBlocks,
'tweetBlock'
];
}
return config;
};

Expand Down

0 comments on commit c7a38fc

Please sign in to comment.