From 6d4f386cfc33fea5088b8e5895735a1775a2e9f7 Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Mon, 29 Jul 2024 18:00:46 -0500 Subject: [PATCH] Adds icons to block settings --- packages/block-library/src/tab/icon.js | 19 +++++++++++++++++++ packages/block-library/src/tab/index.js | 4 ++-- packages/block-library/src/tabs/icon.js | 19 +++++++++++++++++++ packages/block-library/src/tabs/index.js | 4 ++-- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 packages/block-library/src/tab/icon.js create mode 100644 packages/block-library/src/tabs/icon.js diff --git a/packages/block-library/src/tab/icon.js b/packages/block-library/src/tab/icon.js new file mode 100644 index 00000000000000..8ccdf6d3a4473e --- /dev/null +++ b/packages/block-library/src/tab/icon.js @@ -0,0 +1,19 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/components'; + +export default ( + + + +); diff --git a/packages/block-library/src/tab/index.js b/packages/block-library/src/tab/index.js index 966216c39af911..c42afb84470d67 100644 --- a/packages/block-library/src/tab/index.js +++ b/packages/block-library/src/tab/index.js @@ -5,14 +5,14 @@ import initBlock from '../utils/init-block'; import metadata from './block.json'; import edit from './edit'; import save from './save'; -// import icon from './icon'; +import icon from './icon'; const { name } = metadata; export { metadata, name }; export const settings = { - // icon, + icon, edit, save, }; diff --git a/packages/block-library/src/tabs/icon.js b/packages/block-library/src/tabs/icon.js new file mode 100644 index 00000000000000..af9356f636acfe --- /dev/null +++ b/packages/block-library/src/tabs/icon.js @@ -0,0 +1,19 @@ +/** + * WordPress dependencies + */ +import { SVG, Path } from '@wordpress/components'; + +export default ( + + + +); diff --git a/packages/block-library/src/tabs/index.js b/packages/block-library/src/tabs/index.js index 966216c39af911..c42afb84470d67 100644 --- a/packages/block-library/src/tabs/index.js +++ b/packages/block-library/src/tabs/index.js @@ -5,14 +5,14 @@ import initBlock from '../utils/init-block'; import metadata from './block.json'; import edit from './edit'; import save from './save'; -// import icon from './icon'; +import icon from './icon'; const { name } = metadata; export { metadata, name }; export const settings = { - // icon, + icon, edit, save, };