feat: globally disable underscore for links in menu items (#11491)

This commit is contained in:
Jesse Yang 2020-11-02 00:03:18 -08:00 committed by GitHub
parent 19f2deb27f
commit 5d9448f3fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,16 +17,37 @@
* under the License.
*/
import { styled } from '@superset-ui/core';
import { Skeleton } from 'antd';
// eslint-disable-next-line no-restricted-imports
import { Skeleton, Menu as AntdMenu } from 'antd';
/*
Antd is exported from here so we can override components with Emotion as needed.
Antd is re-exported from here so we can override components with Emotion as needed.
For documentation, see https://ant.design/components/overview/
*/
/* eslint no-restricted-imports: 0 */
// eslint-disable-next-line no-restricted-imports
export {
Avatar,
Card,
Collapse,
Empty,
Dropdown,
Modal,
Popover,
Skeleton,
Tabs,
Tooltip,
} from 'antd';
export * from 'antd';
export const MenuItem = styled(AntdMenu.Item)`
> a {
text-decoration: none;
}
`;
export const Menu = Object.assign(AntdMenu, {
Item: MenuItem,
});
export const ThinSkeleton = styled(Skeleton)`
h3 {