Skip to content

Commit

Permalink
update html components to mui components including loading
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-lee1 committed Jun 12, 2024
1 parent 3c33ea8 commit ddca8ef
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions client/src/components/admin/donutChartLoading.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
import React from "react";
import Loading from "../../svg/22.gif";

import "../../sass/Dashboard.scss";
import React from 'react';
import { Box, Container, CircularProgress, Typography } from '@mui/material';
import '../../sass/Dashboard.scss';

const DonutChartLoading = (props) => (
<div className="dashboard-stats">
<div className="dashboard-stat-container">
<div className="stat-header">
<p className="stat-header-text"></p>
</div>
<div className="stat-number"></div>
</div>
<div className="dashboard-chart-container">
<img src={Loading} alt="Logo" />
</div>
</div>
<Container className="dashboard-stats">
<Box className="dashboard-stat-container">
<Box className="stat-header">
<Typography className="stat-header-text"></Typography>
</Box>
<Box className="stat-number"></Box>
</Box>
<Box className="dashboard-chart-container">
<CircularProgress />
</Box>
</Container>
);

export default DonutChartLoading;

0 comments on commit ddca8ef

Please sign in to comment.