aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-14 10:50:08 +0200
committerGravatar ks129 <[email protected]>2020-12-14 10:50:08 +0200
commit8aa3be64c1723bb39a7c580472a3ec81f7956125 (patch)
tree93eae4e2f5f23042ae08bb0fc8064e8fdeb0d508 /src/components
parentCreate Axios client for backend (diff)
Move loading to different component
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Loading.tsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/Loading.tsx b/src/components/Loading.tsx
new file mode 100644
index 0000000..48dcdbc
--- /dev/null
+++ b/src/components/Loading.tsx
@@ -0,0 +1,17 @@
+/** @jsx jsx */
+import { jsx } from "@emotion/core";
+
+import { HashLoader } from "react-spinners";
+
+import HeaderBar from "../components/HeaderBar";
+
+function Loading() {
+ return <div>
+ <HeaderBar title={"Loading..."}/>
+ <div css={{display: "flex", justifyContent: "center"}}>
+ <HashLoader color="white"/>
+ </div>
+ </div>
+}
+
+export default Loading;