Removed Margin from the UserMenu if it's the Navbar

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

View File

@ -82,7 +82,7 @@ interface State {
/**
* Navbar/Sidebar Component
* @version 1.0.1
* @version 1.0.2
*/
export default class Navbar extends React.Component<Props, State> {
@ -224,7 +224,7 @@ export default class Navbar extends React.Component<Props, State> {
</div>
</div>
<div className={buildClassName(css.userMenu, [css.menuActive, !this.state.isMobile && this.state.menuActive])}>
<Row>
<Row nomargin={this.getType() === 'navbar'}>
{this.props.user.menu?.informations && (
<Col>{this.props.user.menu?.informations}</Col>
)}