Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Make very simple changes to the Search block
Browse files Browse the repository at this point in the history
Use wp.editor to get RichText.
Also, change the title to "Travel Search".
There's another search block.
  • Loading branch information
kienstra committed Apr 3, 2019
1 parent d442df3 commit 59a1154
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blocks/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
* Internal block libraries.
*/
const { __ } = wp.i18n;
const { registerBlockType, RichText } = wp.blocks;
const { registerBlockType } = wp.blocks;
const { RichText } = wp.editor;

/**
* Register block.
*/
export default registerBlockType(
'amp-travel/search',
{
title: __( 'Search' ),
title: __( 'Travel Search' ),
category: 'common',
icon: 'search',
keywords: [
Expand Down

0 comments on commit 59a1154

Please sign in to comment.