From 2e9e20414c2ea49d7f40bcff09b89897e13fd2f4 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 21 Mar 2020 15:32:02 +0300
Subject: chore: migrate components to Typescript

---
 src/components/Loading/Loading.tsx | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 src/components/Loading/Loading.tsx

(limited to 'src/components/Loading/Loading.tsx')

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;
-- 
cgit v1.2.3

