impaktapps-design 0.2.73 → 0.2.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-design",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
4
4
  "dependencies": {
5
5
  "@babel/core": "^7.16.12",
6
6
  "@mui/material": "^5.14.3",
@@ -34,7 +34,7 @@ const ProgressBar = ({value,theme} : any) => {
34
34
  <div
35
35
  className="progress-bar-fill"
36
36
  style={{
37
- width: `${progress}%`,
37
+ width: `${progress<100?progress:100}%`,
38
38
  backgroundColor:value?.style?.progressBarFillColor|| getColor()[1],
39
39
  height: "100%",
40
40
  borderRadius: "10px",
@@ -110,7 +110,7 @@ const ProgressBar = ({value,theme} : any) => {
110
110
  <div
111
111
  className="progress-bar-fill"
112
112
  style={{
113
- width: `${progress}%`,
113
+ width: `${progress<100?progress:100}%`,
114
114
  backgroundColor: getColor()[1],
115
115
  // backgroundColor: "#3f51b5",
116
116
  height: "100%",
@@ -54,7 +54,7 @@ return (
54
54
  <Box component="div" sx={containerStyle}
55
55
  >
56
56
  <Box component="h1" style={containerLabelColor}>
57
- { new Date().getTime() >= new Date(data?.startDate ? data?.startDate : new Date('08-01-2060').getTime() ).getTime() && new Date().getTime() <= new Date(data?.endDate ? data?.endDate : new Date('08-01-2060').getTime() ).getTime() ? 'Contest ends in...' : (new Date().getTime() < new Date(data?.startDate ? data?.startDate : new Date('08-01-2060').getTime() ).getTime()) ? 'Program Not Started Yet' : 'Program Over' }
57
+ { new Date().getTime() >= new Date(data?.startDate).getTime() && new Date().getTime() <= new Date(data?.endDate).getTime() ? 'Contest ends in...' : (new Date().getTime() < new Date(data?.startDate).getTime()) ? 'Program Not Started' : 'Program Over' }
58
58
  </Box>
59
59
  <Box style={{display:"flex", gap: "15px",width:"80%",maxWidth:"650px",marginLeft:"auto",marginRight:"auto"}} >
60
60
  <Box style={boxStyle}>