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
|
@@ -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
|
|
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}>
|