Skip to content

Commit

Permalink
Remove the product block breadcrumbs and sidebar inspector (woocommer…
Browse files Browse the repository at this point in the history
…ce#37250)

* Remove the product block breadcrumbs and sidebar inspector

* Add changelog entry
  • Loading branch information
joshuatf authored Mar 16, 2023
1 parent 9c5e9b5 commit 90e7c66
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
4 changes: 4 additions & 0 deletions packages/js/product-editor/changelog/update-37244-37245
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Remove the product block breadcrumbs and sidebar inspector
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import { Product } from '@woocommerce/data';
import { useSelect, select as WPSelect } from '@wordpress/data';
import { uploadMedia } from '@wordpress/media-utils';
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore No types for this exist yet.
BlockBreadcrumb,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore No types for this exist yet.
BlockContextProvider,
Expand All @@ -24,7 +21,6 @@ import {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore No types for this exist yet.
BlockTools,
BlockInspector,
EditorSettings,
EditorBlockListSettings,
WritingFlow,
Expand All @@ -41,7 +37,6 @@ import {
/**
* Internal dependencies
*/
import { Sidebar } from '../sidebar';
import { Tabs } from '../tabs';

type BlockEditorProps = {
Expand Down Expand Up @@ -115,10 +110,6 @@ export function BlockEditor( {
settings={ settings }
>
<Tabs onChange={ setSelectedTab } />
<BlockBreadcrumb />
<Sidebar.InspectorFill>
<BlockInspector />
</Sidebar.InspectorFill>
<div className="editor-styles-wrapper">
{ /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */ }
{ /* @ts-ignore No types for this exist yet. */ }
Expand Down
2 changes: 0 additions & 2 deletions packages/js/product-editor/src/components/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import { FullscreenMode, InterfaceSkeleton } from '@wordpress/interface';
* Internal dependencies
*/
import { Header } from '../header';
import { Sidebar } from '../sidebar';
import { BlockEditor } from '../block-editor';
import { initBlocks } from './init-blocks';

Expand All @@ -48,7 +47,6 @@ export function Editor( { product, settings }: EditorProps ) {
<SlotFillProvider>
<InterfaceSkeleton
header={ <Header title={ product.name } /> }
sidebar={ <Sidebar /> }
content={
<BlockEditor
settings={ settings }
Expand Down
1 change: 0 additions & 1 deletion packages/js/product-editor/src/components/sidebar/index.ts

This file was deleted.

30 changes: 0 additions & 30 deletions packages/js/product-editor/src/components/sidebar/sidebar.tsx

This file was deleted.

0 comments on commit 90e7c66

Please sign in to comment.