Skip to content

Commit

Permalink
Update icon to imported version
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Jan 14, 2025
1 parent 80ea11e commit 140ace0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions projects/packages/forms/src/blocks/contact-form/child-blocks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createBlock } from '@wordpress/blocks';
import { Path } from '@wordpress/components';
import { Path, Icon } from '@wordpress/components';
import { __, _x } from '@wordpress/i18n';
import { link } from '@wordpress/icons';
import { filter, isEmpty, map, startsWith, trim } from 'lodash';
import JetpackField from './components/jetpack-field';
import JetpackFieldCheckbox from './components/jetpack-field-checkbox';
Expand Down Expand Up @@ -416,11 +417,12 @@ export const childBlocks = [
__( 'website', 'jetpack-forms' ),
],
description: __( 'Collect a website address from your site visitors.', 'jetpack-forms' ),
icon: renderMaterialIcon(
// `link` from `@wordpress/icons`
<Path
fill={ getIconColor() }
d="M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"
icon: (
<Icon
icon={ link }
style={ {
fill: getIconColor(),
} }
/>
),
edit: editField( 'url' ),
Expand Down

0 comments on commit 140ace0

Please sign in to comment.