Download Amazon-Clone-PERN-stack/src/components/Loading.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-Clone-PERN-stack/src/components/Loading.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-Clone-PERN-stack/src/components/Loading.js
-
curl -L -o Loading.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-Clone-PERN-stack/src/components/Loading.js
551 Bytes
| import React from "react"; | |
| import loadingIcon from "./../loading.svg"; | |
| import { makeStyles } from "@material-ui/styles"; | |
| const style = makeStyles({ | |
| mainLoading: { | |
| display: "flex", | |
| justifyContent: "center", | |
| alignItems: "center", | |
| height: "100vh", | |
| "& img": { | |
| height: "60px", | |
| width: "60px", | |
| display: "block", | |
| }, | |
| }, | |
| }); | |
| function Loading() { | |
| const classes = style(); | |
| const { mainLoading } = classes; | |
| return ( | |
| <div className={mainLoading}> | |
| <img src={loadingIcon} alt="loading-icon" /> | |
| </div> | |
| ); | |
| } | |
| export default Loading; | |