Set icon to sidebar’s complementary area
This commit is contained in:
parent
e39ee28b9f
commit
6fa048cf62
|
@ -3,6 +3,7 @@ import { useEffect } from '@wordpress/element';
|
|||
import { ComplementaryArea, store as interfaceStore } from '@wordpress/interface';
|
||||
import { Panel } from '@wordpress/components';
|
||||
import { BlockInspector } from '@wordpress/block-editor';
|
||||
import { drawerRight } from '@wordpress/icons';
|
||||
|
||||
import { scope } from './constants';
|
||||
const SIDEBARS_BLOCK = 'tipus/block';
|
||||
|
@ -18,6 +19,7 @@ export default function Sidebar () {
|
|||
scope={ scope }
|
||||
identifier={ SIDEBARS_BLOCK }
|
||||
isActiveByDefault={ true }
|
||||
icon={ drawerRight }
|
||||
>
|
||||
<Panel>
|
||||
<BlockInspector />
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"@wordpress/data": "^10.0.0",
|
||||
"@wordpress/element": "6.0.0",
|
||||
"@wordpress/format-library": "5.0.0",
|
||||
"@wordpress/icons": "10.0.0",
|
||||
"@wordpress/interface": "6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"@wordpress/data": "^10.0.0",
|
||||
"@wordpress/element": "6.0.0",
|
||||
"@wordpress/format-library": "5.0.0",
|
||||
"@wordpress/icons": "10.0.0",
|
||||
"@wordpress/interface": "6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in New Issue