Files
Reactive-Resume/src/components/router/LoadingScreen.js
Amruth Pillai 65fc779d58 - switching from firestore to realtime DB
- implement debouncing tactic to sync data
- display sync indicator
2020-07-06 00:25:31 +05:30

21 lines
576 B
JavaScript

import { Fade, Modal } from "@material-ui/core";
import React from "react";
import Logo from "../shared/Logo";
const LoadingScreen = ({ type }) => {
return (
<Modal open hideBackdrop>
<Fade in>
<div className="w-screen h-screen flex justify-center items-center outline-none">
<div className="flex flex-col items-center">
<Logo size="48px" className="mb-4" />
<span className="font-medium opacity-75">Fetching {type}</span>
</div>
</div>
</Fade>
</Modal>
);
};
export default LoadingScreen;