materialblock

BarHealth.js

Nov 17th, 2020 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2. import { Link, Grid } from "@material-ui/core";
  3. import { makeStyles } from "@material-ui/core/styles";
  4. import Typography from "@material-ui/core/Typography";
  5. import Title from "../interface/TittleNav";
  6. import FavoriteIcon from "@material-ui/icons/Favorite";
  7. import DirectionsRunIcon from "@material-ui/icons/DirectionsRun";
  8. import WhatshotIcon from "@material-ui/icons/Whatshot";
  9.  
  10. import { lightBlue } from "@material-ui/core/colors";
  11.  
  12. function preventDefault(event) {
  13.   event.preventDefault();
  14. }
  15.  
  16. const useStyles = makeStyles({
  17.   depositContext: {
  18.     flex: 1,
  19.   },
  20. });
  21.  
  22. export default function BarHealth() {
  23.   const classes = useStyles();
  24.   return (
  25.     <React.Fragment>
  26.       <Title>Текущие данные</Title>
  27.  
  28.       <Grid container direction="row" alignItems="center">
  29.         <FavoriteIcon style={{ color: lightBlue[700] }} fontSize="large" />{" "}
  30.         Сердечный ритм : 94
  31.       </Grid>
  32.  
  33.       <Grid container direction="row" alignItems="center">
  34.         <DirectionsRunIcon style={{ color: lightBlue[700] }} fontSize="large" />{" "}
  35.         Пройденные шаги : 7452
  36.       </Grid>
  37.  
  38.       <Grid container direction="row" alignItems="center">
  39.         <WhatshotIcon style={{ color: lightBlue[700] }} fontSize="large" />{" "}
  40.         Сожжённые калории : 234
  41.       </Grid>
  42.     </React.Fragment>
  43.   );
  44. }
  45.  
Add Comment
Please, Sign In to add comment