Skip to content

Commit

Permalink
Merge pull request #1095 from hackforla/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sydneywalcoff authored Jan 12, 2024
2 parents 1a29041 + 1f450af commit f967cef
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions products/statement-generator/src/components-layout/Loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import { CircularProgress } from '@material-ui/core';
import { createStyles, makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles(() =>
createStyles({
wrapper: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: '100vh',
gap: '1.5em',
},
circularProgress: {
color: '#9903FF',
},
})
);

interface LoadingProps {}

const Loading: React.FC<LoadingProps> = () => {
const classes = useStyles();

return (
<div className={classes.wrapper}>
<CircularProgress className={classes.circularProgress} size="2rem" />
<h1>Loading</h1>
</div>
);
};

export default Loading;
3 changes: 2 additions & 1 deletion products/statement-generator/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import ReactDOM from 'react-dom';
import 'styles/cssreset.css';

import App from './App';
import Loading from './components-layout/Loading';
import reportWebVitals from './reportWebVitals';

import './moduleAugmentation';
import './i18n';

ReactDOM.render(
<React.StrictMode>
<Suspense fallback={<div>Loading...</div>}>
<Suspense fallback={<Loading />}>
<App />
</Suspense>
</React.StrictMode>,
Expand Down

0 comments on commit f967cef

Please sign in to comment.