Skip to content

Commit

Permalink
Merge pull request Automattic#28571 from Automattic/update/sdk-simple…
Browse files Browse the repository at this point in the history
…-payments-use-jetpack-block

Gutenberg SDK: update Simple Payments block availability
  • Loading branch information
roccotripaldi authored Nov 15, 2018
2 parents 6d7631b + ab35f64 commit dc245a8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions client/gutenberg/extensions/simple-payments/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
/**
* External dependencies
*/
import { registerBlockType } from '@wordpress/blocks';
import { Path, SVG } from '@wordpress/components';

/**
Expand All @@ -13,13 +12,16 @@ import edit from './edit';
import save from './save';
import { DEFAULT_CURRENCY } from 'lib/simple-payments/constants';
import { __, _x } from 'gutenberg/extensions/presets/jetpack/utils/i18n';
import registerJetpackBlock from 'gutenberg/extensions/presets/jetpack/utils/register-jetpack-block';

/**
* Styles
*/
import './editor.scss';

registerBlockType( 'jetpack/simple-payments', {
export const name = 'simple-payments';

export const settings = {
title: __( 'Simple Payments button' ),

description: __(
Expand Down Expand Up @@ -99,4 +101,6 @@ registerBlockType( 'jetpack/simple-payments', {
customClassName: false,
html: false,
},
} );
};

registerJetpackBlock( name, settings );

0 comments on commit dc245a8

Please sign in to comment.