From c1f37b6e7c3568a59e8841e7ef1818e49ceac149 Mon Sep 17 00:00:00 2001 From: Avior Date: Thu, 1 Apr 2021 23:41:40 +0200 Subject: [PATCH] body will not display if there is no body to display Signed-off-by: Avior --- src/dzeio/Box/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dzeio/Box/index.tsx b/src/dzeio/Box/index.tsx index 67482bd..3e7ae0e 100644 --- a/src/dzeio/Box/index.tsx +++ b/src/dzeio/Box/index.tsx @@ -37,9 +37,11 @@ export default class Box extends React.Component { {this.props.headerButtons} )} - - {this.props.children} - + {this.props.children && ( + + {this.props.children} + + )} ) }