Explore: use GrafanaTheme2 (NoDataSourceCallToAction component) (#37542)

* Explore: use GrafanaTheme2 in NoDataSourceCallToAction component

* Explore: add px to the end of styling
This commit is contained in:
Olof Bourghardt 2021-08-05 13:30:31 +02:00 committed by GitHub
parent 7ff16c47e1
commit 0bbfe3f7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
import React from 'react';
import { css } from '@emotion/css';
import { LinkButton, CallToActionCard, Icon, useTheme } from '@grafana/ui';
import { LinkButton, CallToActionCard, Icon, useTheme2 } from '@grafana/ui';
export const NoDataSourceCallToAction = () => {
const theme = useTheme();
const theme = useTheme2();
const message =
'Explore requires at least one data source. Once you have added a data source, you can query it here.';
@ -29,8 +29,8 @@ export const NoDataSourceCallToAction = () => {
);
const cardClassName = css`
max-width: ${theme.breakpoints.lg};
margin-top: ${theme.spacing.md};
max-width: ${theme.breakpoints.values.lg}px;
margin-top: ${theme.spacing(2)};
align-self: center;
`;