forked from Yoast/wordpress-seo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/8.2' into trunk
* release/8.2: Bump version number Add Gutenblock changelog items Remove unused import Improve JsDocs and remove unnecessary Fragment Move import to correct category Use HOC to append space Fix codestyle Add spaces within HowTo and FAQ block Rename FAQ HTML elements Rename classes (part 1) and change strong to H2 # Conflicts: # js/src/structured-data-blocks/how-to/components/HowTo.js
- Loading branch information
Showing
11 changed files
with
83 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React, { Fragment } from "react"; | ||
|
||
/** | ||
* A higher order component that appends a space to the given component. | ||
* | ||
* @param {ReactComponent} WrappedComponent The component to append a space to. | ||
* @returns {ReactComponent} The component with an appended space. | ||
*/ | ||
const appendSpace = function( WrappedComponent ) { | ||
return class ComponentWithAppendedSpace extends React.Component { | ||
render() { | ||
return( | ||
<Fragment> | ||
<WrappedComponent { ...this.props }/> | ||
{ " " } | ||
</Fragment> | ||
); | ||
} | ||
}; | ||
}; | ||
|
||
export default appendSpace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.