Skip to content

Commit

Permalink
Properly prepare 07-slotfills-esnext example for i18n (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
audrasjb authored Nov 2, 2021
1 parent 0a0142e commit 5530105
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 07-slotfills-esnext/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies.
*/
import { __ } from '@wordpress/i18n';
import { TextControl } from '@wordpress/components';
import { useEntityProp } from '@wordpress/core-data';
import { useSelect } from '@wordpress/data';
Expand Down Expand Up @@ -46,11 +47,11 @@ const ExamplePluginDocumentSettingPanel = () => {
return (
<PluginDocumentSettingPanel
name="example-07-slotfills-esnext"
title="Example Meta Box (ESNext)"
title= __( 'Example Meta Box (ESNext)', 'gutenberg-examples' )
className="example-07-slotfills-esnext"
>
<TextControl
label="Example Meta Field"
label= __( 'Example Meta Field', 'gutenberg-examples' )
value={ getPostMeta( metaKey ) }
onChange={ ( value ) => setPostMeta( metaKey, value ) }
/>
Expand Down

0 comments on commit 5530105

Please sign in to comment.