Skip to content

Commit

Permalink
refactor: change sample block icon
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Apr 12, 2024
1 parent 4959039 commit 00f5f7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import metadata from './metadata';
import Icon from './Icon';
//import Icon from './Icon';
import Edit from './Edit';

const settings = {
...metadata,
icon: Icon,
// The 'art' string refers to the dashicons-art icon - https://developer.wordpress.org/resource/dashicons/#art
icon: 'art', //Icon,
save: () => null,
edit: Edit,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {colors} = getGiveAddonFormBuilderWindowData();

const metadata: BlockConfiguration = {
name: 'givewp/colors-sample-block',
title: __('Colors - Sample Block', 'ADDON_TEXTDOMAIN'),
title: __('Colors Sample Block', 'ADDON_TEXTDOMAIN'),
description: __('Set the color you would like to use to customize your swags.', 'ADDON_TEXTDOMAIN'),
category: 'addons',
icon: 'yes',
Expand All @@ -16,7 +16,7 @@ const metadata: BlockConfiguration = {
attributes: {
label: {
type: 'string',
default: __('Choose the colors to use in your swags.', 'ADDON_TEXTDOMAIN'),
default: __('Choose the primary color to use in your swags.', 'ADDON_TEXTDOMAIN'),
},
color: {
type: 'array',
Expand Down

0 comments on commit 00f5f7b

Please sign in to comment.