Explorar el Código

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek hace 1 año
padre
commit
427afc5734
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. +11
    -0
      src/components/CustomInputForm/CustomInputForm.tsx
  2. +2
    -2
      src/components/EditStaff/EditStaff.tsx

+ 11
- 0
src/components/CustomInputForm/CustomInputForm.tsx Ver fichero

@@ -307,6 +307,17 @@ const CustomInputForm: React.FC<CustomInputFormProps> = ({
onChange={(newValue) => {
handleDateChange(field.id, newValue);
}}
slotProps={{
textField: {
required: field.required,
},
}}
// error={Boolean(errors[field.id])}
// slotProps={{
// textField: {
// helperText: Boolean(errors[field.id]) && field.message,
// },
// }}
// required = {field.required ?? false},
/>
</DemoItem>


+ 2
- 2
src/components/EditStaff/EditStaff.tsx Ver fichero

@@ -165,7 +165,7 @@ const EditStaff: React.FC = async () => {
label: t(`Team`),
type: "combo-Obj",
options: teamCombo,
value: data[key].id ?? "",
value: data[key]?.id ?? "",
};
case "department":
return {
@@ -277,7 +277,7 @@ const EditStaff: React.FC = async () => {
case "emergContactPhone":
return {
id: `${key}`,
label: t(`Emergency Contact Phonee`),
label: t(`Emergency Contact Phone`),
type: "text",
// pattern: "^\\d{8}$",
message: t("input correct phone no."),


Cargando…
Cancelar
Guardar