Skip to content

Commit

Permalink
Use paragraph icon instead
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Oct 20, 2024
1 parent a11af46 commit 04b367d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/block/blocks/paragraph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { BlockConfiguration } from '@wordpress/blocks';
import { registerBlockType } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
import Edit from './edit';
import { TextIcon } from '../../components';
import { ParagraphIcon } from '../../components';
import metadata from './block.json';

const blockConfig: BlockConfiguration = {
...metadata,
icon: TextIcon,
icon: ParagraphIcon,
title: __( 'Paragraph', 'gravatar-enhanced' ),
description: __( 'The Paragraph block for the Gravatar block.', 'gravatar-enhanced' ),
edit: Edit,
Expand Down
2 changes: 1 addition & 1 deletion src/block/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export { default as AvatarIcon } from './avatar-icon';
export { default as ColumnIcon } from './column-icon';
export { default as ImageIcon } from './image-icon';
export { default as NameIcon } from './name-icon';
export { default as TextIcon } from './text-icon';
export { default as ParagraphIcon } from './paragraph-icon';
export { default as LinkIcon } from './link-icon';
16 changes: 16 additions & 0 deletions src/block/components/paragraph-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { SVG, Path } from '@wordpress/components';

export default function ParagraphIcon() {
return (
<SVG
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24"
height="24"
aria-hidden="true"
focusable="false"
>
<Path d="m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"></Path>
</SVG>
);
}
9 changes: 0 additions & 9 deletions src/block/components/text-icon.tsx

This file was deleted.

0 comments on commit 04b367d

Please sign in to comment.