Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Jul 27, 2021
1 parent cd93eb0 commit ce15092
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { PanelBody, RangeControl, ToggleControl, Toolbar } from '@wordpress/components';
import { PanelBody, RangeControl, ToggleControl, ToolbarGroup } from '@wordpress/components';

export const MAX_POSTS_TO_SHOW = 6;

Expand Down Expand Up @@ -54,5 +54,5 @@ export function RelatedPostsBlockControls( { attributes, setAttributes } ) {
},
];

return <Toolbar controls={ layoutControls } />;
return <ToolbarGroup controls={ layoutControls } />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default function WhatsAppButtonEdit( { attributes, setAttributes, classNa

<RichText
placeholder={ buttonText.default }
keepPlaceholderOnFocus={ true }
value={ buttonText }
onChange={ value => setAttributes( { buttonText: value } ) }
withoutInteractiveFormatting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const defaultProps = {
setAttributes: jest.fn(),
className: 'wp-block-jetpack-slideshow',
clientId: 1,
noticeOperations: {},
noticeOperations: {
createErrorNotice: jest.fn(),
},
};

test( 'loads without slideshow structure if no images', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External Dependencies
*/
import { __ } from '@wordpress/i18n';
import { Dropdown, MenuItem, NavigableMenu, Path, SVG, Toolbar } from '@wordpress/components';
import { Dropdown, MenuItem, NavigableMenu, Path, SVG, ToolbarGroup } from '@wordpress/components';

/**
* Internal dependencies
Expand All @@ -17,7 +17,7 @@ export default function FormatPicker( { value, onChange } ) {
position="bottom right"
renderToggle={ ( { onToggle, isOpen } ) => {
return (
<Toolbar
<ToolbarGroup
controls={ [
{
icon: (
Expand Down

0 comments on commit ce15092

Please sign in to comment.