aboutsummaryrefslogtreecommitdiff
path: root/src/components/Loading/Loading.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-03-21 15:32:02 +0300
committereug-vs <eug-vs@keemail.me>2020-03-21 15:32:02 +0300
commit2e9e20414c2ea49d7f40bcff09b89897e13fd2f4 (patch)
tree03e34134c9ba1b735de45196b9745d883c9c2168 /src/components/Loading/Loading.tsx
parent2ca9cbb36e25e280a1b26c9dc03eaea30e1dcc9d (diff)
downloadchrono-cube-ui-2e9e20414c2ea49d7f40bcff09b89897e13fd2f4.tar.gz
chore: migrate components to Typescript
Diffstat (limited to 'src/components/Loading/Loading.tsx')
-rw-r--r--src/components/Loading/Loading.tsx33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/components/Loading/Loading.tsx b/src/components/Loading/Loading.tsx
new file mode 100644
index 0000000..a784be1
--- /dev/null
+++ b/src/components/Loading/Loading.tsx
@@ -0,0 +1,33 @@
+import React from 'react';
+
+import {
+ Card,
+ CardHeader,
+} from '@material-ui/core';
+
+import { makeStyles } from '@material-ui/core/styles';
+import CircularProgress from '@material-ui/core/CircularProgress';
+
+
+const useStyles = makeStyles(theme => ({
+ root: {
+ padding: theme.spacing(1),
+ background: theme.palette.background.elevation2,
+ },
+}));
+
+const Loading: React.FC = () => {
+ const classes = useStyles();
+
+ return (
+ <Card className={classes.root}>
+ <CardHeader
+ avatar={(<CircularProgress color="secondary" />)}
+ title="Loading"
+ subheader="Please, wait."
+ />
+ </Card>
+ )
+};
+
+export default Loading;