Skip to content

Commit

Permalink
chore: Center the Spinner in the loading screen and add Loading message
Browse files Browse the repository at this point in the history
  • Loading branch information
mmelko committed Jun 23, 2023
1 parent 3234963 commit 9554d75
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions packages/hawtio/src/ui/page/HawtioLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
import { Page, PageSection, Spinner } from '@patternfly/react-core'
import { Grid, GridItem, Page, PageSection, Spinner, Text, TextContent, TextVariants } from '@patternfly/react-core'

Check warning on line 1 in packages/hawtio/src/ui/page/HawtioLoading.tsx

View workflow job for this annotation

GitHub Actions / lint

'PageSection' is defined but never used
import React from 'react'

export const HawtioLoading: React.FunctionComponent = () => (
<Page>
<PageSection>
<Spinner isSVG aria-label='Loading Hawtio' />
</PageSection>
<Grid
hasGutter
style={{
display: 'flex',
height: '100vh',
width: '100vw',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
}}
>
<GridItem span={12}>
<Spinner diameter='60px' isSVG aria-label='Loading Hawtio' />
</GridItem>
<GridItem span={12}>
<TextContent>
<Text className={'--pf-global--Color--200'} component={TextVariants.h3}>
Loading ...
</Text>
</TextContent>
</GridItem>
</Grid>
</Page>
)

0 comments on commit 9554d75

Please sign in to comment.