Removed unwanted fragment, centered the Chevron indicator

Signed-off-by: rthera7 <v-rthera@expediagroup.com>
This commit is contained in:
rthera7
2022-05-13 18:32:58 +05:30
parent 42bdeb514f
commit 2271388885
@@ -370,15 +370,13 @@ const SidebarItemBase = forwardRef<any, SidebarItemProps>((props, ref) => {
const { isOpen } = useContext(SidebarContext);
const divStyle =
!isOpen && children ? { marginLeft: '24px', marginBottom: '4px' } : {};
!isOpen && children ? { display: 'flex', marginLeft: '24px' } : {};
const displayItemIcon = (
<>
<div style={divStyle}>
<Icon fontSize="small" />
{!isOpen && children ? <ArrowRightIcon /> : <></>}
</div>
</>
<div style={divStyle}>
<Icon fontSize="small" />
{!isOpen && children ? <ArrowRightIcon /> : <></>}
</div>
);
const itemIcon = (