Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update html components to mui components including loading #1667

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading