Theme: Renames new theme model from GrafanaThemeV2 to just GrafanaTheme (#33619)

This commit is contained in:
Torkel Ödegaard
2021-05-03 09:45:54 +02:00
committed by GitHub
parent b165bfabc1
commit 7ee994f843
130 changed files with 291 additions and 288 deletions

View File

@@ -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%;

View File

@@ -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``,
};

View File

@@ -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%;