mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-22 10:52:16 +00:00
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:
parent
d2fbe42db8
commit
c1f37b6e7c
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user