Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 9e7bd5c

Browse files
committed
Fix props
1 parent 87e15eb commit 9e7bd5c

File tree

8 files changed

+27
-42
lines changed

8 files changed

+27
-42
lines changed

components/blocks/Gutenberg/BlockAccordions/BlockAccordions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
66
* A custom ACF Block for displaying accordions.
77
*
88
* @author WebDevStudios
9-
* @param props.props.props
10-
* @param props.props.props.props
11-
* @param {object} props.props The component attributes as props.
9+
* @param {object} props The component props.
10+
* @param {object} props.props The component attributes as props.
11+
* @return {Element} The Accordion component.
1212
*/
1313
export default function BlockAccordions({props}) {
1414
const {

components/blocks/Gutenberg/BlockButton/BlockButton.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import PropTypes from 'prop-types'
1313
* @param {string} props.linkTarget The target for the link.
1414
* @param {string} props.rel The rel attribute for the link.
1515
* @param {string} props.text The link label.
16-
* @param {string} props.title The target for the link.
1716
* @param {string} props.url The link for the button.
1817
* @return {Element} The Button component.
1918
*/
@@ -46,6 +45,5 @@ BlockButton.propTypes = {
4645
linkTarget: PropTypes.string,
4746
rel: PropTypes.string,
4847
text: PropTypes.string,
49-
title: PropTypes.string,
5048
url: PropTypes.string
5149
}

components/blocks/Gutenberg/BlockGravityForm/BlockGravityForm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import PropTypes from 'prop-types'
77
* @author WebDevStudios
88
* @param {object} props The component props.
99
* @param {object} props.attributes Component attributes.
10+
* @return {Element} The GravityForm component.
1011
*/
1112
export default function BlockGravityForm({attributes}) {
1213
return <GravityForm {...attributes} />

components/blocks/Gutenberg/BlockMediaText/BlockMediaText.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,10 @@ import PropTypes from 'prop-types'
1010
* The core Code block from Gutenberg.
1111
*
1212
* @author WebDevStudios
13-
* @param media.media
14-
* @param {object} media Media props.
15-
* @param {string} media.anchor The anchor/id of the block.
16-
* @param {string} media.mediaAlt The image alt text.
17-
* @param {string} media.caption The image caption.
18-
* @param {string} media.className The image class.
19-
* @param {string} media.mediaId The image ID.
20-
* @param {string} media.href The URL of the link.
21-
* @param {string} media.linkTarget Target for the link.
22-
* @param {string} media.linkClass Class for the link.
23-
* @param {string} media.rel The rel attribute for the link.
24-
* @param {string} media.sizeSlug The WP image size.
25-
* @param {string} media.mediaUrl The full URL path of the image.
26-
* @param {string} media.mediaPosition The position of the image, left or right.
27-
* @param {Array} media.innerBlocks The array of inner blocks to display.
28-
* @return {Element} The Code component.
13+
* @param {object} props The component properties.
14+
* @param {object} props.media Media props.
15+
* @param {Array} props.innerBlocks The array of inner blocks to display.
16+
* @return {Element} The Code component.
2917
*/
3018
export default function BlockMediaText({media, innerBlocks}) {
3119
return (

components/blocks/Gutenberg/BlockNetflixCarousel/BlockNetflixCarousel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
66
* A custom ACF Block for displaying a carousel of cards.
77
*
88
* @author WebDevStudios
9-
* @param props.props.props
10-
* @param props.props.props.props
11-
* @param {object} props.props The component attributes as props.
9+
* @param {object} props The component properties.
10+
* @param {object} props.props The component attributes as props.
11+
* @return {Element} The NetflixCarousel component.
1212
*/
1313
export default function BlockNetflixCarousel({props}) {
1414
const {

components/blocks/Gutenberg/BlockShortcode/BlockShortcode.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import PropTypes from 'prop-types'
66
* The core Shortcode block from Gutenberg.
77
*
88
* @author WebDevStudios
9-
* @param props.props
10-
* @param {object} props The component attributes as props.
11-
* @return {Element} The Shortcode component.
9+
* @param {object} props The component attributes as props.
10+
* @param {object} props.props The component props.
11+
* @return {Element} The Shortcode component.
1212
*/
1313
export default function BlockShortcode({props}) {
1414
const {content} = props

components/blocks/Gutenberg/BlockTable/BlockTable.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ import PropTypes from 'prop-types'
77
* The core Paragraph block from Gutenberg.
88
*
99
* @author WebDevStudios
10-
* @param {object} props The component props.
11-
* @param {string} props.className Optional classnames.
12-
* @param {string} props.align Optional alignment style.
13-
* @param {string} props.anchor Optional anchor/id.
14-
* @param props.head
15-
* @param props.body
16-
* @param props.foot
17-
* @param props.caption
18-
* @param {string} props.content The content of the block.
10+
* @param {object} props The component props.
11+
* @param {string} props.anchor Optional anchor/id.
12+
* @param {Array} props.body The body blocks.
13+
* @param {string} props.caption The caption.
14+
* @param {string} props.className Optional classnames.
15+
* @param {Array} props.foot The foot blocks
16+
* @param {Array} props.head The head blocks.
1917
* @return {Element} The RichText component.
2018
*/
2119
export default function BlockTable({
2220
anchor,
23-
head,
2421
body,
25-
foot,
2622
caption,
27-
className
23+
className,
24+
foot,
25+
head
2826
}) {
2927
return (
3028
<Table

components/blocks/Gutenberg/BlockVideoEmbed/BlockVideoEmbed.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import PropTypes from 'prop-types'
55
* The core YouTube embed block from Gutenberg.
66
*
77
* @author WebDevStudios
8-
* @param props.props
9-
* @param {object} props The component attributes as props.
10-
* @return {Element} The YouTube component.
8+
* @param {object} props The component attributes as props.
9+
* @param {object} props.props The props object.
10+
* @return {Element} The YouTube component.
1111
*/
1212
export default function BlockVideoEmbed({props}) {
1313
const {

0 commit comments

Comments
 (0)