Skip to content

Commit

Permalink
DataViews: export the view components as defaults (#56677)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored and derekblank committed Dec 7, 2023
1 parent ccd8dce commit c33e058
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/edit-site/src/components/dataviews/dataviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { useMemo } from '@wordpress/element';
/**
* Internal dependencies
*/
import ViewList from './view-list';
import Pagination from './pagination';
import ViewActions from './view-actions';
import Filters from './filters';
import Search from './search';
import { ViewGrid } from './view-grid';
import { ViewSideBySide } from './view-side-by-side';
import ViewList from './view-list';
import ViewGrid from './view-grid';
import ViewSideBySide from './view-side-by-side';

// To do: convert to view type registry.
export const viewTypeSupportsMap = {
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/dataviews/view-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useAsyncList } from '@wordpress/compose';
*/
import ItemActions from './item-actions';

export function ViewGrid( { data, fields, view, actions, getItemId } ) {
export default function ViewGrid( { data, fields, view, actions, getItemId } ) {
const mediaField = fields.find(
( field ) => field.id === view.layout.mediaField
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import ViewList from './view-list';

export function ViewSideBySide( props ) {
export default function ViewSideBySide( props ) {
// To do: change to email-like preview list.
return <ViewList { ...props } />;
}

0 comments on commit c33e058

Please sign in to comment.