Skip to content

Commit

Permalink
DataViews: Mark the new Templates pages as stable (#57109)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored and artemiomorales committed Jan 4, 2024
1 parent e09e50b commit c277643
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 483 deletions.
12 changes: 7 additions & 5 deletions packages/dataviews/src/view-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,13 @@ export default function ViewActions( {
}
>
<DropdownMenuGroup>
<ViewTypeMenu
view={ view }
onChangeView={ onChangeView }
supportedLayouts={ supportedLayouts }
/>
{ window?.__experimentalAdminViews && (
<ViewTypeMenu
view={ view }
onChangeView={ onChangeView }
supportedLayouts={ supportedLayouts }
/>
) }
<SortMenu
fields={ fields }
view={ view }
Expand Down
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/page-main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { privateApis as routerPrivateApis } from '@wordpress/router';
import PagePatterns from '../page-patterns';
import PageTemplateParts from '../page-template-parts';
import PageTemplates from '../page-templates';
import DataviewsTemplates from '../page-templates/dataviews-templates';
import PagePages from '../page-pages';
import { unlock } from '../../lock-unlock';

Expand All @@ -21,11 +20,7 @@ export default function PageMain() {
} = useLocation();

if ( path === '/wp_template/all' ) {
return window?.__experimentalAdminViews ? (
<DataviewsTemplates />
) : (
<PageTemplates />
);
return <PageTemplates />;
} else if ( path === '/wp_template_part/all' ) {
return <PageTemplateParts />;
} else if ( path === '/patterns' ) {
Expand Down
Loading

0 comments on commit c277643

Please sign in to comment.