File tree 2 files changed +11
-10
lines changed
packages/block-library/src/query-no-results
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 8
8
"ancestor" : [ " core/query" ],
9
9
"textdomain" : " default" ,
10
10
"usesContext" : [ " queryId" , " query" ],
11
- "example" : {
12
- "innerBlocks" : [
13
- {
14
- "name" : " core/paragraph" ,
15
- "attributes" : {
16
- "content" : " No posts were found."
17
- }
18
- }
19
- ]
20
- },
21
11
"supports" : {
22
12
"align" : true ,
23
13
"reusable" : false ,
Original file line number Diff line number Diff line change 1
1
/**
2
2
* WordPress dependencies
3
3
*/
4
+ import { __ } from '@wordpress/i18n' ;
4
5
import { loop as icon } from '@wordpress/icons' ;
5
6
6
7
/**
@@ -18,6 +19,16 @@ export const settings = {
18
19
icon,
19
20
edit,
20
21
save,
22
+ example : {
23
+ innerBlocks : [
24
+ {
25
+ name : 'core/paragraph' ,
26
+ attributes : {
27
+ content : __ ( 'No posts were found.' ) ,
28
+ } ,
29
+ } ,
30
+ ] ,
31
+ } ,
21
32
} ;
22
33
23
34
export const init = ( ) => initBlock ( { name, metadata, settings } ) ;
You can’t perform that action at this time.
0 commit comments