balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

blocks.js (389B)


      1 import {__} from '@wordpress/i18n';
      2 
      3 const { registerBlockType } = wp.blocks;
      4 import * as importBlock from './import';
      5 import * as libraryBlock from './library';
      6 
      7 export function registerBlocks() {
      8 
      9     registerBlockType( `redux/${ libraryBlock.name }`, { ...libraryBlock.settings } );
     10 	registerBlockType( `redux/${ importBlock.name }`, { ...importBlock.settings } );
     11 
     12 }
     13 registerBlocks();