diff --git a/packages/edit-site/src/components/sidebar-dataviews/default-views.js b/packages/edit-site/src/components/sidebar-dataviews/default-views.js index 2cdfc154b0992a..1320564d0d9af8 100644 --- a/packages/edit-site/src/components/sidebar-dataviews/default-views.js +++ b/packages/edit-site/src/components/sidebar-dataviews/default-views.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { trash } from '@wordpress/icons'; +import { trash, pages, drafts } from '@wordpress/icons'; /** * Internal dependencies @@ -51,11 +51,13 @@ export const DEFAULT_VIEWS = { { title: __( 'All pages' ), slug: 'all', + icon: pages, view: DEFAULT_PAGE_BASE, }, { title: __( 'Drafts' ), slug: 'drafts', + icon: drafts, view: { ...DEFAULT_PAGE_BASE, filters: [ diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index aa7a8ee90778c0..1d3c8c24c5cfd9 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -68,6 +68,7 @@ export { default as currencyPound } from './library/currency-pound'; export { default as customPostType } from './library/custom-post-type'; export { default as desktop } from './library/desktop'; export { default as details } from './library/details'; +export { default as drafts } from './library/drafts'; export { default as dragHandle } from './library/drag-handle'; export { default as drawerLeft } from './library/drawer-left'; export { default as drawerRight } from './library/drawer-right'; diff --git a/packages/icons/src/library/drafts.js b/packages/icons/src/library/drafts.js new file mode 100644 index 00000000000000..8744c35dfd4dbe --- /dev/null +++ b/packages/icons/src/library/drafts.js @@ -0,0 +1,16 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/primitives'; + +const drafts = ( + + + +); + +export default drafts;