Skip to content

Commit

Permalink
Change Business Hours block to 'Widgets' category
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj committed Jan 24, 2020
1 parent 3fd43e9 commit 1f84644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/blocks/business-hours/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import { __, _x } from '@wordpress/i18n';
import { Path } from '@wordpress/components';
import { registerBlockCollection } from '@wordpress/blocks';

/**
* Internal dependencies
Expand Down Expand Up @@ -82,7 +83,7 @@ export const settings = {
title: __( 'Business Hours', 'jetpack' ),
description: __( 'Display opening hours for your business.', 'jetpack' ),
icon,
category: 'jetpack',
category: typeof registerBlockCollection === 'function' ? 'widgets' : 'jetpack',
supports: {
html: true,
},
Expand Down

0 comments on commit 1f84644

Please sign in to comment.