mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-07 00:29:55 +00:00
misc: Cleanup
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
b5f44113b5
commit
aa4e7100fe
@ -11,6 +11,9 @@ interface Props {
|
||||
|
||||
export default class Container extends React.Component<Props> {
|
||||
|
||||
public render = () => React.createElement(this.props.mainContainer ? 'main' : 'div', {className: buildClassName(css.container, this.props.className, [css.main, this.props.mainContainer]), children: this.props.children})
|
||||
public render = () => React.createElement(this.props.mainContainer ? 'main' : 'div', {
|
||||
className: buildClassName(css.container, this.props.className, [css.main, this.props.mainContainer]),
|
||||
children: this.props.children
|
||||
})
|
||||
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ export default class Text extends React.PureComponent<Props> {
|
||||
)
|
||||
|
||||
if (this.props.tag === 'em') {
|
||||
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.tag ?? data.tag ?? 'p', {...this.props.textProps, className: classes, children: this.props.children})
|
||||
|
Loading…
x
Reference in New Issue
Block a user