Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages data view: Update view icons #62136

Merged
merged 7 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { trash, pages, drafts } from '@wordpress/icons';
import { trash, pages, draft, page, calendar } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -57,7 +57,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Published' ),
slug: 'published',
icon: pages,
icon: page,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand All @@ -72,7 +72,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Scheduled' ),
slug: 'future',
icon: pages,
icon: calendar,
view: {
...DEFAULT_PAGE_BASE,
filters: [
Expand All @@ -87,7 +87,7 @@ export const DEFAULT_VIEWS = {
{
title: __( 'Drafts' ),
slug: 'drafts',
icon: drafts,
icon: draft,
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 @@ -70,6 +70,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 draft } from './library/draft';
export { default as drafts } from './library/drafts';
export { default as dragHandle } from './library/drag-handle';
export { default as drawerLeft } from './library/drawer-left';
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/draft.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const draft = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fillRule="evenodd"
clipRule="evenodd"
d="M7 4h2v1.5H7a.5.5 0 0 0-.5.5v2.4H5V6a2 2 0 0 1 2-2ZM5 18v-2.4h1.5V18a.5.5 0 0 0 .5.5h2V20H7a2 2 0 0 1-2-2ZM6.5 14.4H5V9.6h1.5v4.8ZM10 5.5V4h4v1.5h-4ZM15 5.5V4h2a2 2 0 0 1 2 2v2.4h-1.5V6a.5.5 0 0 0-.5-.5h-2ZM17.5 9.6H19v4.8h-1.5V9.6ZM17.5 15.6H19V18a2 2 0 0 1-2 2h-2v-1.5h2a.5.5 0 0 0 .5-.5v-2.4ZM14 18.5V20h-4v-1.5h4ZM16 9.25H8v-1.5h8v1.5ZM14 12.5H8V11h6v1.5Z"
/>
</SVG>
);

export default draft;
Loading