All files / src/components/CustomProgressbar index.tsx

0% Statements 0/1
100% Branches 0/0
0% Functions 0/1
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33                                                                 
import { Box } from "@mui/material";
 
interface Props {
  targetProgress: number;
}
 
function CustomProgressbar({ targetProgress }: Props) {
  return (
    <Box
      sx={{
        width: "100%",
        height: "3px",
        borderRadius: "8px",
        display: "flex",
        overflow: "hidden",
        backgroundColor: "#ECECE9",
      }}
    >
      <Box
        sx={{
          borderRadius: "8px",
          width: `${targetProgress}%`,
          backgroundImage:
            "linear-gradient(223.56deg, #72ECF0 0%, #528DDF 100%)",
          transition: "width 0.5s ease-in-out",
        }}
      />
    </Box>
  );
}
 
export { CustomProgressbar };