style : linear progress improvements
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
LinearProgress,
|
||||
LinearProgressProps,
|
||||
Typography,
|
||||
linearProgressClasses,
|
||||
} from "@mui/material";
|
||||
|
||||
const LinearProgressBar = (
|
||||
@@ -19,12 +20,30 @@ const LinearProgressBar = (
|
||||
item
|
||||
container
|
||||
xs={12}
|
||||
width="90%"
|
||||
alignItems="center"
|
||||
justifyContent="center"
|
||||
wrap="nowrap"
|
||||
>
|
||||
<Grid item sx={{ width: "100%", mr: 2 }}>
|
||||
<LinearProgress variant="determinate" {...props} />
|
||||
<LinearProgress
|
||||
variant="determinate"
|
||||
{...props}
|
||||
sx={(theme) => ({
|
||||
borderRadius: "5px",
|
||||
height: "5px",
|
||||
[`&.${linearProgressClasses.colorPrimary}`]: {
|
||||
backgroundColor:
|
||||
theme.palette.grey[
|
||||
theme.palette.mode === "light" ? 200 : 700
|
||||
],
|
||||
},
|
||||
[`& .${linearProgressClasses.bar}`]: {
|
||||
borderRadius: 5,
|
||||
backgroundColor: "#308fe8",
|
||||
},
|
||||
})}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item sx={{ minWidth: 35 }}>
|
||||
<Typography variant="body2" color="text.secondary">{`${Math.round(
|
||||
|
||||
Reference in New Issue
Block a user