Fix formatting and remove unused imports
This commit is contained in:
parent
5b1a63a69c
commit
9a100b44c9
|
@ -1,5 +1,3 @@
|
|||
import { useSelect } from '@wordpress/data';
|
||||
import { useEffect } from '@wordpress/element';
|
||||
import { ComplementaryArea } from '@wordpress/interface';
|
||||
import { Panel } from '@wordpress/components';
|
||||
import { BlockInspector } from '@wordpress/block-editor';
|
||||
|
@ -7,7 +5,7 @@ import { drawerRight } from '@wordpress/icons';
|
|||
|
||||
import { scope } from './constants';
|
||||
|
||||
export default function Sidebar () {
|
||||
export default function Sidebar() {
|
||||
return (
|
||||
<ComplementaryArea
|
||||
scope={ scope }
|
||||
|
|
|
@ -2,13 +2,13 @@ import { createRoot, StrictMode } from '@wordpress/element';
|
|||
import { registerCoreBlocks } from '@wordpress/block-library';
|
||||
import '@wordpress/format-library';
|
||||
|
||||
registerCoreBlocks();
|
||||
|
||||
import Editor from './Editor';
|
||||
|
||||
registerCoreBlocks();
|
||||
|
||||
const root = createRoot(document.querySelector('main'));
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<Editor/>
|
||||
<Editor />
|
||||
</StrictMode>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue