Skip to content

Commit

Permalink
Hide the component until we have the templates ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Bravo committed Nov 25, 2021
1 parent e845a21 commit cebf7a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/comments-pagination/block.json
Expand Up @@ -20,6 +20,7 @@
"align": true,
"reusable": false,
"html": false,
"inserter": false,
"color": {
"gradients": true,
"link": true
Expand Down
12 changes: 0 additions & 12 deletions packages/block-library/src/comments-pagination/edit.js
Expand Up @@ -17,12 +17,6 @@ import { PanelBody } from '@wordpress/components';
*/
import { CommentsPaginationArrowControls } from './comments-pagination-arrow-controls';

const TEMPLATE = [
[ 'core/query-pagination-previous' ],
[ 'core/query-pagination-numbers' ],
[ 'core/query-pagination-next' ],
];

const getDefaultBlockLayout = ( blockTypeOrName ) => {
const layoutBlockSupportConfig = getBlockSupport(
blockTypeOrName,
Expand Down Expand Up @@ -54,12 +48,6 @@ export default function QueryPaginationEdit( {
}, [] );
const blockProps = useBlockProps();
const innerBlocksProps = useInnerBlocksProps( blockProps, {
template: TEMPLATE,
allowedBlocks: [
'core/query-pagination-previous',
'core/query-pagination-numbers',
'core/query-pagination-next',
],
__experimentalLayout: usedLayout,
} );
return (
Expand Down

0 comments on commit cebf7a4

Please sign in to comment.