{mainLinks.map((link, index) => {
return
;
diff --git a/public/app/core/components/sidemenu/TopSectionItem.tsx b/public/app/core/components/sidemenu/TopSectionItem.tsx
index dba932fc717..ef05287d8c6 100644
--- a/public/app/core/components/sidemenu/TopSectionItem.tsx
+++ b/public/app/core/components/sidemenu/TopSectionItem.tsx
@@ -1,7 +1,8 @@
import React, { FC } from 'react';
import SideMenuDropDown from './SideMenuDropDown';
-import { Icon, Link } from '@grafana/ui';
+import { Icon, Link, useStyles2 } from '@grafana/ui';
import { NavModelItem } from '@grafana/data';
+import { css, cx } from '@emotion/css';
export interface Props {
link: NavModelItem;
@@ -9,6 +10,13 @@ export interface Props {
}
const TopSectionItem: FC
= ({ link, onClick }) => {
+ const resetButtonStyles = useStyles2(
+ () =>
+ css`
+ background-color: transparent;
+ `
+ );
+
const linkContent = (
{link.icon && }
@@ -28,9 +36,9 @@ const TopSectionItem: FC = ({ link, onClick }) => {
{linkContent}
) : (
-
+
+
);
return (
diff --git a/public/app/core/components/sidemenu/__snapshots__/TopSection.test.tsx.snap b/public/app/core/components/sidemenu/__snapshots__/TopSection.test.tsx.snap
deleted file mode 100644
index 374763031a5..00000000000
--- a/public/app/core/components/sidemenu/__snapshots__/TopSection.test.tsx.snap
+++ /dev/null
@@ -1,51 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Render should render component 1`] = `
-
-
-
-
-`;
-
-exports[`Render should render items 1`] = `
-
-
-
-
-`;