Feature/gasht rahdari cartable
This commit is contained in:
@@ -11,7 +11,7 @@ const InputType = ({ itemInfo, defaultValues, setDefaultValues }) => {
|
||||
};
|
||||
console.log(itemInfo);
|
||||
|
||||
const label = itemInfo.unit ? `${itemInfo.name} (${itemInfo.unit})` : itemInfo.name
|
||||
const label = itemInfo.unit ? `${itemInfo.name} (${itemInfo.unit})` : itemInfo.name;
|
||||
|
||||
return (
|
||||
<FormControl size="small" fullWidth variant="outlined">
|
||||
|
||||
@@ -9,7 +9,7 @@ const SelectType = ({ itemInfo, defaultValues, setDefaultValues }) => {
|
||||
[itemInfo.id]: newValue,
|
||||
}));
|
||||
};
|
||||
const label = itemInfo.unit ? `${itemInfo.name} (${itemInfo.unit})` : itemInfo.name
|
||||
const label = itemInfo.unit ? `${itemInfo.name} (${itemInfo.unit})` : itemInfo.name;
|
||||
return (
|
||||
<FormControl size="small" fullWidth variant="outlined">
|
||||
<InputLabel id={itemInfo.id}>{label}</InputLabel>
|
||||
|
||||
Reference in New Issue
Block a user