Skip to content

Commit

Permalink
Polish import docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr committed Jun 11, 2020
1 parent 3e40b47 commit 9c8f790
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* WordPress dependencies
*/
// eslint-disable-next-line wpcalypso/import-docblock
import {
__experimentalAlignmentHookSettingsProvider as AlignmentHookSettingsProvider,
InnerBlocks,
Expand All @@ -11,10 +12,6 @@ import { withDispatch, withSelect } from '@wordpress/data';
import { useEffect } from '@wordpress/element';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
*/

const ALLOWED_BLOCKS = [
'core/button',
'jetpack/recurring-payments',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* WordPress dependencies
*/
// eslint-disable-next-line wpcalypso/import-docblock
import { __ } from '@wordpress/i18n';
import { button as icon } from '@wordpress/icons';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ const category = 'design';
/**
* @typedef {object} Attributes
* @property { string } text
* @property { string } type
* @property { number } borderRadius
* @property { string } backgroundColor
* @property { string } textColor
* @property { string } gradient
* @property { object } style
*
* @typedef {import('@wordpress/blocks').BlockConfiguration<Attributes>} BlockConfiguration
* @type {BlockConfiguration}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ import { RichText } from '@wordpress/block-editor';
import getColorAndStyleProps from './color-props';

export default function save( { attributes } ) {
const { borderRadius, text, type } = attributes;
const { borderRadius, text } = attributes;
const colorProps = getColorAndStyleProps( attributes );
const buttonClasses = classnames( 'wp-block-button__link', colorProps.className, {
// `wp-block-premium-content-subscribe` ensures the subscribe dialog is opened in the same page using ThickBox.
'wp-block-premium-content-button-subscribe': type === 'subscribe',
'no-border-radius': borderRadius === 0,
} );
const buttonStyle = {
Expand Down

0 comments on commit 9c8f790

Please sign in to comment.