mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-08 00:59:54 +00:00
Fixed Text
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
b19992b57c
commit
7e28baf2aa
@ -26,6 +26,6 @@ export default class Text extends React.Component<Props> {
|
|||||||
return (<p className={classes}><em>{this.props.children}</em></p>)
|
return (<p className={classes}><em>{this.props.children}</em></p>)
|
||||||
}
|
}
|
||||||
|
|
||||||
return React.createElement(this.props.type || 'p', {className: classes})
|
return React.createElement(this.props.type || 'p', {className: classes, children: this.props.children})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user