Skip to content

Commit

Permalink
feat: globally disable underscore for links in menu items (apache#11491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored and auxten committed Nov 20, 2020
1 parent 083a44f commit 0944717
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions superset-frontend/src/common/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0944717

Please sign in to comment.