mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* remove toggle * remove code not behind toggle * remove old MegaMenu * rename DockedMegaMenu -> MegaMenu and clean up go code * fix backend test * run yarn i18n:extract * fix some unit tests * fix remaining unit tests * fix remaining e2e/unit tests
29 lines
667 B
TypeScript
29 lines
667 B
TypeScript
import { css } from '@emotion/css';
|
|
import React from 'react';
|
|
|
|
import { GrafanaTheme2 } from '@grafana/data';
|
|
import { useStyles2 } from '@grafana/ui';
|
|
|
|
import { BouncingLoader } from '../components/BouncingLoader/BouncingLoader';
|
|
|
|
export function GrafanaRouteLoading() {
|
|
const styles = useStyles2(getStyles);
|
|
|
|
return (
|
|
<div className={styles.loadingPage}>
|
|
<BouncingLoader />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const getStyles = (theme: GrafanaTheme2) => ({
|
|
loadingPage: css({
|
|
backgroundColor: theme.colors.background.primary,
|
|
height: '100%',
|
|
flexDrection: 'column',
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
}),
|
|
});
|