refactor: Bootstrap to AntD - NavDropdown (#14557)

This commit is contained in:
Michael S. Molina
2021-05-13 18:54:09 -03:00
committed by GitHub
parent d31958cbd2
commit e4d24242b4
8 changed files with 208 additions and 221 deletions

View File

@@ -201,7 +201,7 @@ export function Menu({
return (
<StyledHeader className="top" id="main-menu" role="navigation">
<Row>
<Col lg={19} md={19} sm={24} xs={24}>
<Col lg={12} md={24} sm={24} xs={24}>
<a className="navbar-brand" href={brand.path}>
<img width={brand.width} src={brand.icon} alt={brand.alt} />
</a>
@@ -210,7 +210,7 @@ export function Menu({
data-test="navbar-top"
className="main-nav"
>
{menu.map((item, index) => {
{menu.map(item => {
const props = {
...item,
isFrontendRoute: isFrontendRoute(item.url),
@@ -230,7 +230,7 @@ export function Menu({
})}
</DropdownMenu>
</Col>
<Col lg={5} md={5} sm={24} xs={24}>
<Col lg={12} md={24} sm={24} xs={24}>
<RightMenu
settings={settings}
navbarRight={navbarRight}