mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
refactor: icon to icons for navbar (#15643)
* initial commit * remove code
This commit is contained in:
committed by
GitHub
parent
f0c0d7492c
commit
8efd94a14f
@@ -24,7 +24,7 @@ import { getUrlParam } from 'src/utils/urlUtils';
|
||||
import { MainNav as DropdownMenu, MenuMode } from 'src/common/components';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Row, Col, Grid } from 'antd';
|
||||
import Icon from 'src/components/Icon';
|
||||
import Icons from 'src/components/Icons';
|
||||
import RightMenu from './MenuRight';
|
||||
import { Languages } from './LanguagePicker';
|
||||
import { URL_PARAMS } from '../../constants';
|
||||
@@ -189,7 +189,11 @@ export function Menu({
|
||||
);
|
||||
}
|
||||
return (
|
||||
<SubMenu key={index} title={label} icon={<Icon name="triangle-down" />}>
|
||||
<SubMenu
|
||||
key={index}
|
||||
title={label}
|
||||
icon={showMenu === 'inline' ? <></> : <Icons.TriangleDown />}
|
||||
>
|
||||
{childs?.map((child: MenuObjectChildProps | string, index1: number) => {
|
||||
if (typeof child === 'string' && child === '-') {
|
||||
return <DropdownMenu.Divider key={`$${index1}`} />;
|
||||
|
||||
Reference in New Issue
Block a user