Skip to content

Commit

Permalink
Update sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Mar 18, 2024
1 parent 6aaa368 commit cc993b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import DataViewItem from './dataview-item';
import CustomDataViewsList from './custom-dataviews-list';

const PATH_TO_TYPE = {
'/pages': 'page',
'/page': 'page',
};

export default function DataViewsSidebarContent() {
Expand Down
5 changes: 0 additions & 5 deletions packages/edit-site/src/components/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import SidebarNavigationScreenGlobalStyles from '../sidebar-navigation-screen-gl
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';
import SaveHub from '../save-hub';
import { unlock } from '../../lock-unlock';
import SidebarNavigationScreenPages from '../sidebar-navigation-screen-pages';
import SidebarNavigationScreen from '../sidebar-navigation-screen';
import DataViewsSidebarContent from '../sidebar-dataviews';
import SidebarNavigationScreenPage from '../sidebar-navigation-screen-page';
Expand Down Expand Up @@ -69,13 +68,9 @@ function SidebarScreens() {
<SidebarNavigationScreenGlobalStyles />
</SidebarScreenWrapper>
<SidebarScreenWrapper path="/page">
<SidebarNavigationScreenPages />
</SidebarScreenWrapper>
<SidebarScreenWrapper path="/pages">
<SidebarNavigationScreen
title={ __( 'Manage pages' ) }
content={ <DataViewsSidebarContent /> }
backPath="/page"
/>
</SidebarScreenWrapper>
<SidebarScreenWrapper path="/page/:postId">
Expand Down

0 comments on commit cc993b5

Please sign in to comment.