mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
fix: missing default value for grid block content objects (#1186)
This commit is contained in:
parent
e31ecdfd0c
commit
4dcd6840c3
1 changed files with 10 additions and 1 deletions
|
@ -11,7 +11,16 @@ const classNames = require('classnames');
|
|||
const MarkdownBlock = require('./MarkdownBlock.js');
|
||||
|
||||
class GridBlock extends React.Component {
|
||||
renderBlock(block) {
|
||||
renderBlock(origBlock) {
|
||||
const blockDefaults = {
|
||||
imageAlign: 'left',
|
||||
};
|
||||
|
||||
const block = {
|
||||
...blockDefaults,
|
||||
...origBlock,
|
||||
};
|
||||
|
||||
const blockClasses = classNames('blockElement', this.props.className, {
|
||||
alignCenter: this.props.align === 'center',
|
||||
alignRight: this.props.align === 'right',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue