help me with this, the circular doesn't spin //…
- User
help me with this, the circular doesn't spin // frontend/src/components/CustomCircularProgress.jsx import * as React from 'react'; import { styled } from '@mui/material/styles'; import Box from '@mui/material/Box'; import CircularProgress, { circularProgressClasses, } from '@mui/material/CircularProgress';
// Styled component for a circular progress with additional styles const StyledCircularProgress0 = styled(CircularProgress)(({ theme }) => ({ // Adjusting the color for light and dark mode color: theme.palette.grey[200], ...theme.applyStyles('dark', { color: theme.palette.grey[800], }), }));
// Styled component for a circular progress with additional styles const StyledCircularProgress = styled(CircularProgress)(({ theme }) => ({ // Adjusting the color for light and dark mode color: theme.palette.mode === 'dark' ? theme.palette.grey[800] : theme.palette.grey[200], }));
// Inspired by the former Facebook spinners. const CustomCircularProgress = (props) => { return ( <Box sx={{ position: 'relative' }}> <StyledCircularProgress variant="determinate" size={40} thickness={4} {...props} value={100} // Set to 100 to show full progress, can be changed to dynamic value /> <StyledCircularProgress variant="indeterminate" disableShrink sx={{ animationDuration: '550ms', position: 'absolute', left: 0, [
& .${circularProgressClasses.circle}]: { strokeLinecap: 'round', }, }} size={40} thickness={4} {...props} /> ); };export default CustomCircularProgress;
- Assistant
- User
help me create component, a file .jsx
import * as React from 'react'; import { styled } from '@mui/material/styles'; import Box from '@mui/material/Box'; import Stack from '@mui/material/Stack'; import CircularProgress, { circularProgressClasses, } from '@mui/material/CircularProgress'; import LinearProgress, { linearProgressClasses } from '@mui/material/LinearProgress';
- Assistant
- User
Nice, help me pass the value of BorderLinearProgress into CustomizedProgressBars
- Assistant
- User
can I just import GradientCircularProgress from GradientCircularProgres.jsx?
- Assistant
- User
help me create BorderLinearProgress.jsx (MUI) But I don't know the value of progress, help me just use plus 1 every one second, if it over 100, just restart from 0 repeat. also create another text to display the total time elapsed
- Assistant
- User
nice, help me convert seconds in to hour minute second <Typography variant="body2" color="text.secondary" align="right" sx={{ mt: 1 }}> Total time elapsed: {elapsedTime}s
- Assistant