Skip to content

Commit

Permalink
Update pages dataview icons, add 'drafts' icon (#59285)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
  • Loading branch information
4 people authored and getdave committed Feb 27, 2024
1 parent 90f3b51 commit 1b8ae32
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { trash } from '@wordpress/icons';
import { trash, pages, drafts } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -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: [
Expand Down
1 change: 1 addition & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/drafts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const drafts = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M8 2H6a2 2 0 0 0-2 2v2.4h1.5V4a.5.5 0 0 1 .5-.5h2V2ZM4 13.6V16a2 2 0 0 0 2 2h2v-1.5H6a.5.5 0 0 1-.5-.5v-2.4H4Zm0-1.2h1.5V7.6H4v4.8ZM9 2v1.5h4V2H9Zm5 0v1.5h2a.5.5 0 0 1 .5.5v2.4H18V4a2 2 0 0 0-2-2h-2Zm4 5.6h-1.5v4.8H18V7.6Zm0 6h-1.5V16a.5.5 0 0 1-.5.5h-2V18h2a2 2 0 0 0 2-2v-2.4ZM13 18v-1.5H9V18h4ZM7 7.25h8v-1.5H7v1.5Zm0 3.25h6V9H7v1.5ZM21.75 19V6h-1.5v13c0 .69-.56 1.25-1.25 1.25H8v1.5h11A2.75 2.75 0 0 0 21.75 19Z"
/>
</SVG>
);

export default drafts;

0 comments on commit 1b8ae32

Please sign in to comment.