1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from 'react';
6 import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles';
7 import { ArvadosTheme } from 'common/custom-theme';
8 import { Grid, CircularProgress } from '@material-ui/core';
10 type CssRules = 'root' | 'img';
12 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
14 marginBottom: theme.spacing.unit * 4
17 background: theme.palette.background.default,
23 zIndex: theme.zIndex.appBar + 1,
27 export const WorkbenchLoadingScreen = withStyles(styles)(({ classes }: WithStyles<CssRules>) =>
28 <Grid container direction="column" alignItems='center' justify='center' className={classes.root}>
29 <img src='/arvados_logo.png' className={classes.img} />
30 <CircularProgress data-cy='loading-spinner' />