| @@ -1,15 +1,15 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * WordPress dependencies |
| 3 | 3 | */ |
| 4 | -const { __ } = wp.i18n; | |
| 5 | -const { registerBlockType } = wp.blocks; | |
| 4 | +import { __ } from '@wordpress/i18n' | |
| 5 | +import { registerBlockType } from '@wordpress/blocks'; | |
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Internal dependencies |
| 9 | 9 | */ |
| 10 | 10 | import blockAttributes from './data/attributes'; |
| 11 | -import giveLogo from './data/icon'; | |
| 11 | +import GiveIcon from '@givewp/components/GiveIcon'; | |
| 12 | 12 | import GiveDonorWallGrid from './edit/block'; |
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Register Block |
| @@ -14,18 +14,18 @@ | ||
| 14 | 14 | /** |
| 15 | 15 | * Register Block |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -export default registerBlockType( 'give/donor-wall', { | |
| 19 | - | |
| 20 | - title: __( 'Give Donor Wall' ), | |
| 21 | - description: __( 'The Give Donor Wall block inserts an existing donation form into the page. Each form\'s presentation can be customized below.' ), | |
| 22 | - category: 'widgets', | |
| 23 | - icon: giveLogo, | |
| 24 | - keywords: [ | |
| 25 | - __( 'donation' ), | |
| 26 | - __( 'wall' ), | |
| 27 | - ], | |
| 18 | +export default registerBlockType('give/donor-wall', { | |
| 19 | + apiVersion: 3, | |
| 20 | + title: __('Donor Wall', 'give'), | |
| 21 | + description: __( | |
| 22 | + 'The GiveWP Donor Wall block displays donations on the front end of the site. The settings below allow you to customize the information displayed', | |
| 23 | + 'give' | |
| 24 | + ), | |
| 25 | + category: 'give', | |
| 26 | + icon: <GiveIcon color="grey" />, | |
| 27 | + keywords: [__('donation', 'give'), __('wall', 'give')], | |
| 28 | 28 | supports: { |
| 29 | 29 | html: false, |
| 30 | 30 | }, |
| 31 | 31 | attributes: blockAttributes, |
| @@ -34,5 +34,5 @@ | ||
| 34 | 34 | save: () => { |
| 35 | 35 | // Server side rendering via shortcode |
| 36 | 36 | return null; |
| 37 | 37 | }, |
| 38 | -} ); | |
| 38 | +}); | |