mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: use Box
in command palette empty state (#82101)
* use Box * use paddingTop/paddingBottom
This commit is contained in:
parent
00d69bc8e5
commit
ef6e315322
@ -1,31 +1,21 @@
|
||||
import { css } from '@emotion/css';
|
||||
import React from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { Stack, Text, useStyles2 } from '@grafana/ui';
|
||||
import { Box, Stack, Text } from '@grafana/ui';
|
||||
import { Trans } from 'app/core/internationalization';
|
||||
|
||||
export interface Props {}
|
||||
|
||||
export const EmptyState = ({}: Props) => {
|
||||
const styles = useStyles2(getStyles);
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<Box paddingY={8}>
|
||||
<Stack direction="column" alignItems="center">
|
||||
<img src={'public/img/grot-not-found.svg'} width="200px" alt="grot" />
|
||||
<Text variant="h5">
|
||||
<Trans i18nKey="command-palette.empty-state.title">No results found</Trans>
|
||||
</Text>
|
||||
</Stack>
|
||||
</div>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
EmptyState.displayName = 'EmptyState';
|
||||
|
||||
const getStyles = (theme: GrafanaTheme2) => ({
|
||||
container: css({
|
||||
padding: theme.spacing(8, 0),
|
||||
}),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user