diff --git a/client/src/Components/Charts/CustomGauge/index.jsx b/client/src/Components/Charts/CustomGauge/index.jsx
index d9718d72c..614b3774c 100644
--- a/client/src/Components/Charts/CustomGauge/index.jsx
+++ b/client/src/Components/Charts/CustomGauge/index.jsx
@@ -17,7 +17,6 @@ const MAXIMUM_VALUE = 100;
* @param {number} [props.progress=0] - Progress percentage (0-100)
* @param {number} [props.radius=60] - Radius of the gauge circle
* @param {number} [props.strokeWidth=15] - Width of the gauge stroke
- * @param {number} [props.threshold=50] - Threshold for color change
* @param {number} [props.precision=1] - Precision of the progress percentage
* @param {string} [props.unit="%"] - Unit of progress
*
@@ -26,7 +25,6 @@ const MAXIMUM_VALUE = 100;
* progress={75}
* radius={50}
* strokeWidth={10}
- * threshold={50}
* />
*
* @returns {React.ReactElement} Rendered CustomGauge component
@@ -36,7 +34,6 @@ const CustomGauge = ({
progress = 0,
radius = 70,
strokeWidth = 15,
- threshold = 50,
precision = 1,
unit = "%",
}) => {
@@ -64,10 +61,14 @@ const CustomGauge = ({
const progressWithinRange = Math.max(MINIMUM_VALUE, Math.min(progress, MAXIMUM_VALUE));
- const fillColor =
- progressWithinRange > threshold
- ? theme.palette.error.lowContrast
- : theme.palette.accent.main;
+ let fillColor;
+ if (progressWithinRange < 50) {
+ fillColor = theme.palette.success.main;
+ } else if (progressWithinRange < 80) {
+ fillColor = theme.palette.warning.lowContrast;
+ } else {
+ fillColor = theme.palette.error.lowContrast;
+ }
if (isLoading) {
return (
@@ -142,7 +143,6 @@ CustomGauge.propTypes = {
progress: PropTypes.number,
radius: PropTypes.number,
strokeWidth: PropTypes.number,
- threshold: PropTypes.number,
precision: PropTypes.number,
unit: PropTypes.string,
};
diff --git a/client/src/Components/Inputs/Search/index.jsx b/client/src/Components/Inputs/Search/index.jsx
index c3008886c..7202cc2eb 100644
--- a/client/src/Components/Inputs/Search/index.jsx
+++ b/client/src/Components/Inputs/Search/index.jsx
@@ -4,7 +4,6 @@ import {
ListItem,
Autocomplete,
TextField,
- Stack,
Typography,
Checkbox,
} from "@mui/material";
@@ -33,7 +32,6 @@ const SearchAdornment = () => {
const theme = useTheme();
return (
diff --git a/client/src/Components/Inputs/Select/index.jsx b/client/src/Components/Inputs/Select/index.jsx
index a438b6bb2..c5c488f91 100644
--- a/client/src/Components/Inputs/Select/index.jsx
+++ b/client/src/Components/Inputs/Select/index.jsx
@@ -50,6 +50,7 @@ const Select = ({
onChange,
onBlur,
sx,
+ error = false,
name = "",
labelControlSpacing = 6,
maxWidth,
@@ -93,6 +94,7 @@ const Select = ({
onChange={onChange}
onBlur={onBlur}
displayEmpty
+ error={error}
name={name}
inputProps={{ id: id }}
IconComponent={KeyboardArrowDownIcon}
@@ -112,7 +114,7 @@ const Select = ({
fill: theme.palette.primary.contrastTextTertiary,
},
"& .MuiSelect-select": {
- padding: "0 13px",
+ padding: "0",
minHeight: "34px",
display: "flex",
alignItems: "center",
@@ -172,6 +174,7 @@ Select.propTypes = {
label: PropTypes.string,
placeholder: PropTypes.string,
isHidden: PropTypes.bool,
+ error: PropTypes.bool,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])
.isRequired,
items: PropTypes.arrayOf(
diff --git a/client/src/Components/LanguageSelector.jsx b/client/src/Components/LanguageSelector.jsx
index 56a9a898d..9b46204e3 100644
--- a/client/src/Components/LanguageSelector.jsx
+++ b/client/src/Components/LanguageSelector.jsx
@@ -30,7 +30,17 @@ const LanguageSelector = () => {
value={language}
onChange={handleChange}
size="small"
- sx={{ minWidth: 80 }}
+ sx={{
+ minWidth: 80,
+ "& .MuiSelect-select": {
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ },
+ "& .MuiSelect-icon": {
+ alignSelf: "center",
+ },
+ }}
>
{languages.map((lang) => {
let parsedLang = lang === "en" ? "gb" : lang;
@@ -47,11 +57,17 @@ const LanguageSelector = () => {