body will not display if there is no body to display

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-04-01 23:41:40 +02:00
parent d2fbe42db8
commit c1f37b6e7c
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6

View File

@ -37,9 +37,11 @@ export default class Box extends React.Component<Props> {
{this.props.headerButtons} {this.props.headerButtons}
</BoxHeader> </BoxHeader>
)} )}
<BoxBody noPadding={this.props.noPadding}> {this.props.children && (
{this.props.children} <BoxBody noPadding={this.props.noPadding}>
</BoxBody> {this.props.children}
</BoxBody>
)}
</BoxWrapper> </BoxWrapper>
) )
} }