From aa4e7100fe0edda99fe9edad0a5b4dfe6f5de391 Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 5 Apr 2022 11:53:00 +0200 Subject: [PATCH] misc: Cleanup Signed-off-by: Avior --- src/Container/index.tsx | 5 ++++- src/Text/index.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Container/index.tsx b/src/Container/index.tsx index d27e652..90a7ed7 100644 --- a/src/Container/index.tsx +++ b/src/Container/index.tsx @@ -11,6 +11,9 @@ interface Props { export default class Container extends React.Component { - 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 + }) } diff --git a/src/Text/index.tsx b/src/Text/index.tsx index ff227a1..16e0ab1 100644 --- a/src/Text/index.tsx +++ b/src/Text/index.tsx @@ -85,7 +85,7 @@ export default class Text extends React.PureComponent { ) if (this.props.tag === 'em') { - return (

{this.props.children}

) + return

{this.props.children}

} return React.createElement(this.props.tag ?? data.tag ?? 'p', {...this.props.textProps, className: classes, children: this.props.children})