Skip to content

Commit 04b367d

Browse files
committed
Use paragraph icon instead
1 parent a11af46 commit 04b367d

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

src/block/blocks/paragraph/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import type { BlockConfiguration } from '@wordpress/blocks';
22
import { registerBlockType } from '@wordpress/blocks';
33
import { __ } from '@wordpress/i18n';
44
import Edit from './edit';
5-
import { TextIcon } from '../../components';
5+
import { ParagraphIcon } from '../../components';
66
import metadata from './block.json';
77

88
const blockConfig: BlockConfiguration = {
99
...metadata,
10-
icon: TextIcon,
10+
icon: ParagraphIcon,
1111
title: __( 'Paragraph', 'gravatar-enhanced' ),
1212
description: __( 'The Paragraph block for the Gravatar block.', 'gravatar-enhanced' ),
1313
edit: Edit,

src/block/components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export { default as AvatarIcon } from './avatar-icon';
33
export { default as ColumnIcon } from './column-icon';
44
export { default as ImageIcon } from './image-icon';
55
export { default as NameIcon } from './name-icon';
6-
export { default as TextIcon } from './text-icon';
6+
export { default as ParagraphIcon } from './paragraph-icon';
77
export { default as LinkIcon } from './link-icon';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { SVG, Path } from '@wordpress/components';
2+
3+
export default function ParagraphIcon() {
4+
return (
5+
<SVG
6+
xmlns="http://www.w3.org/2000/svg"
7+
viewBox="0 0 24 24"
8+
width="24"
9+
height="24"
10+
aria-hidden="true"
11+
focusable="false"
12+
>
13+
<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>
14+
</SVG>
15+
);
16+
}

src/block/components/text-icon.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)