{!panel.libraryPanel && (
@@ -60,7 +76,7 @@ export const PanelLibraryOptionsGroup: React.FC
= ({ panel, searchQuery }
@@ -72,11 +88,15 @@ export const PanelLibraryOptionsGroup: React.FC = ({ panel, searchQuery }
isOpen={showingAddPanelModal}
/>
)}
+
+ {changeToPanel && (
+
+ )}
);
};
-const getStyles = stylesFactory((theme: GrafanaTheme) => {
+const getStyles = (theme: GrafanaTheme) => {
return {
box: css``,
addButtonWrapper: css`
@@ -88,4 +108,4 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => {
gap: 10px;
`,
};
-});
+};