From 5fdbafdc456ddcbbbbd470edbabc429a7ce01b56 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Wed, 26 Jun 2024 12:30:02 +0100 Subject: [PATCH] E2C: New onprem empty state (#89628) * E2C: New onprem empty state * fix test --- .../EmptyState/CallToAction/CallToAction.tsx | 2 +- .../onprem/EmptyState/EmptyState.tsx | 47 ++++++++----------- .../onprem/EmptyState/InfoPaneLeft.tsx | 8 ++-- .../onprem/EmptyState/InfoPaneRight.tsx | 6 +-- 4 files changed, 28 insertions(+), 35 deletions(-) diff --git a/public/app/features/migrate-to-cloud/onprem/EmptyState/CallToAction/CallToAction.tsx b/public/app/features/migrate-to-cloud/onprem/EmptyState/CallToAction/CallToAction.tsx index 56bd133fbb8..d9c6153780a 100644 --- a/public/app/features/migrate-to-cloud/onprem/EmptyState/CallToAction/CallToAction.tsx +++ b/public/app/features/migrate-to-cloud/onprem/EmptyState/CallToAction/CallToAction.tsx @@ -13,7 +13,7 @@ export const CallToAction = () => { return ( <> - + Let us manage your Grafana stack diff --git a/public/app/features/migrate-to-cloud/onprem/EmptyState/EmptyState.tsx b/public/app/features/migrate-to-cloud/onprem/EmptyState/EmptyState.tsx index 37f56297a91..ee5a399b954 100644 --- a/public/app/features/migrate-to-cloud/onprem/EmptyState/EmptyState.tsx +++ b/public/app/features/migrate-to-cloud/onprem/EmptyState/EmptyState.tsx @@ -1,38 +1,29 @@ -import { css } from '@emotion/css'; - -import { GrafanaTheme2 } from '@grafana/data'; -import { Grid, Stack, useStyles2 } from '@grafana/ui'; +import { Box, Grid, Stack } from '@grafana/ui'; import { CallToAction } from './CallToAction/CallToAction'; import { InfoPaneLeft } from './InfoPaneLeft'; import { InfoPaneRight } from './InfoPaneRight'; export const EmptyState = () => { - const styles = useStyles2(getStyles); - return ( -
- - + + + + - - - - - -
+ + + + + +
+
); }; - -const getStyles = (theme: GrafanaTheme2) => ({ - container: css({ - maxWidth: theme.breakpoints.values.xl, - }), -}); diff --git a/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneLeft.tsx b/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneLeft.tsx index 693332bd4f6..37ca5356f8c 100644 --- a/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneLeft.tsx +++ b/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneLeft.tsx @@ -1,11 +1,11 @@ -import { Box } from '@grafana/ui'; +import { Stack } from '@grafana/ui'; import { t, Trans } from 'app/core/internationalization'; import { InfoItem } from '../../shared/InfoItem'; export const InfoPaneLeft = () => { return ( - + { installation. + { SLOs, incident management, machine learning, and powerful observability integrations. + { unauthorized access, use, or disclosure. - + ); }; diff --git a/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneRight.tsx b/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneRight.tsx index f0967a6604d..01173bab9e8 100644 --- a/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneRight.tsx +++ b/public/app/features/migrate-to-cloud/onprem/EmptyState/InfoPaneRight.tsx @@ -1,11 +1,11 @@ -import { Box } from '@grafana/ui'; +import { Stack } from '@grafana/ui'; import { t, Trans } from 'app/core/internationalization'; import { InfoItem } from '../../shared/InfoItem'; export const InfoPaneRight = () => { return ( - + { dashboards. - + ); };