mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Theme: Renames new theme model from GrafanaThemeV2 to just GrafanaTheme (#33619)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useCallback, useState } from 'react';
|
||||
import { HorizontalGroup, useStyles2, VerticalGroup } from '@grafana/ui';
|
||||
import { GrafanaThemeV2, PanelPluginMeta, SelectableValue } from '@grafana/data';
|
||||
import { GrafanaTheme2, PanelPluginMeta, SelectableValue } from '@grafana/data';
|
||||
import { css } from '@emotion/css';
|
||||
import { FilterInput } from '../../../../core/components/FilterInput/FilterInput';
|
||||
import { SortPicker } from '../../../../core/components/Select/SortPicker';
|
||||
@@ -93,7 +93,7 @@ export const LibraryPanelsSearch = ({
|
||||
);
|
||||
};
|
||||
|
||||
function getStyles(theme: GrafanaThemeV2) {
|
||||
function getStyles(theme: GrafanaTheme2) {
|
||||
return {
|
||||
container: css`
|
||||
width: 100%;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { MouseEvent, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { css } from '@emotion/css';
|
||||
import { AsyncSelect, Button, Modal, useStyles2 } from '@grafana/ui';
|
||||
import { GrafanaThemeV2, SelectableValue, urlUtil } from '@grafana/data';
|
||||
import { GrafanaTheme2, SelectableValue, urlUtil } from '@grafana/data';
|
||||
import { locationService } from '@grafana/runtime';
|
||||
|
||||
import { LibraryPanelDTO } from '../../types';
|
||||
@@ -85,7 +85,7 @@ async function loadOptionsAsync(uid: string, searchString: string, setLoading: (
|
||||
return options;
|
||||
}
|
||||
|
||||
function getStyles(theme: GrafanaThemeV2) {
|
||||
function getStyles(theme: GrafanaTheme2) {
|
||||
return {
|
||||
container: css``,
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { FC, useCallback, useState } from 'react';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { css } from '@emotion/css';
|
||||
import { GrafanaThemeV2, PanelPluginMeta } from '@grafana/data';
|
||||
import { GrafanaTheme2, PanelPluginMeta } from '@grafana/data';
|
||||
import { Button, useStyles2, VerticalGroup } from '@grafana/ui';
|
||||
|
||||
import { PanelModel } from 'app/features/dashboard/state';
|
||||
@@ -109,7 +109,7 @@ export const PanelLibraryOptionsGroup: FC<Props> = ({ panel, searchQuery }) => {
|
||||
);
|
||||
};
|
||||
|
||||
const getStyles = (theme: GrafanaThemeV2) => {
|
||||
const getStyles = (theme: GrafanaTheme2) => {
|
||||
return {
|
||||
libraryPanelsView: css`
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user