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 { ComplementaryArea } from '@wordpress/interface';
|
||||||
import { Panel } from '@wordpress/components';
|
import { Panel } from '@wordpress/components';
|
||||||
import { BlockInspector } from '@wordpress/block-editor';
|
import { BlockInspector } from '@wordpress/block-editor';
|
||||||
|
@ -7,7 +5,7 @@ import { drawerRight } from '@wordpress/icons';
|
||||||
|
|
||||||
import { scope } from './constants';
|
import { scope } from './constants';
|
||||||
|
|
||||||
export default function Sidebar () {
|
export default function Sidebar() {
|
||||||
return (
|
return (
|
||||||
<ComplementaryArea
|
<ComplementaryArea
|
||||||
scope={ scope }
|
scope={ scope }
|
||||||
|
|
|
@ -2,13 +2,13 @@ import { createRoot, StrictMode } from '@wordpress/element';
|
||||||
import { registerCoreBlocks } from '@wordpress/block-library';
|
import { registerCoreBlocks } from '@wordpress/block-library';
|
||||||
import '@wordpress/format-library';
|
import '@wordpress/format-library';
|
||||||
|
|
||||||
registerCoreBlocks();
|
|
||||||
|
|
||||||
import Editor from './Editor';
|
import Editor from './Editor';
|
||||||
|
|
||||||
|
registerCoreBlocks();
|
||||||
|
|
||||||
const root = createRoot(document.querySelector('main'));
|
const root = createRoot(document.querySelector('main'));
|
||||||
root.render(
|
root.render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<Editor/>
|
<Editor />
|
||||||
</StrictMode>
|
</StrictMode>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue