| @@ -115,6 +115,8 @@ const ProjectClientDetails: React.FC<Props> = ({ | |||||
| if (selectedCustomerId !== undefined) { | if (selectedCustomerId !== undefined) { | ||||
| fetchCustomer(selectedCustomerId).then( | fetchCustomer(selectedCustomerId).then( | ||||
| ({ contacts, subsidiaryIds, customer }) => { | ({ contacts, subsidiaryIds, customer }) => { | ||||
| console.log(contacts) | |||||
| console.log(subsidiaryIds) | |||||
| setCustomerContacts(contacts); | setCustomerContacts(contacts); | ||||
| setCustomerSubsidiaryIds(subsidiaryIds); | setCustomerSubsidiaryIds(subsidiaryIds); | ||||
| setValue( | setValue( | ||||
| @@ -433,7 +435,7 @@ const ProjectClientDetails: React.FC<Props> = ({ | |||||
| }} | }} | ||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| <Grid item sx={{ display: { xs: "none", sm: "block" } }} /> | |||||
| {/* <Grid item sx={{ display: { xs: "none", sm: "block" } }} /> */} | |||||
| <Grid item xs={6}> | <Grid item xs={6}> | ||||
| <ControlledAutoComplete | <ControlledAutoComplete | ||||
| control={control} | control={control} | ||||
| @@ -446,9 +448,21 @@ const ProjectClientDetails: React.FC<Props> = ({ | |||||
| }} | }} | ||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | |||||
| <Grid item sx={{ display: { xs: "none", sm: "block" } }} /> | <Grid item sx={{ display: { xs: "none", sm: "block" } }} /> | ||||
| {customerContacts.length > 0 && ( | {customerContacts.length > 0 && ( | ||||
| <> | |||||
| <Box> | |||||
| <Stack | |||||
| direction="row" | |||||
| alignItems="center" | |||||
| marginBlockEnd={1} | |||||
| spacing={2} | |||||
| > | |||||
| <Typography variant="overline" display="block"> | |||||
| {t("Subsidiary Details")} | |||||
| </Typography> | |||||
| </Stack> | |||||
| <Grid container spacing={2} columns={{ xs: 6, sm: 12 }}> | |||||
| <Grid item xs={6}> | <Grid item xs={6}> | ||||
| <ControlledAutoComplete | <ControlledAutoComplete | ||||
| control={control} | control={control} | ||||
| @@ -519,9 +533,10 @@ const ProjectClientDetails: React.FC<Props> = ({ | |||||
| value={selectedCustomerContact?.email || ""} | value={selectedCustomerContact?.email || ""} | ||||
| /> | /> | ||||
| </Grid> | </Grid> | ||||
| </> | |||||
| </Grid> | |||||
| </Box> | |||||
| )} | )} | ||||
| </Grid> | |||||
| {/* </Grid> */} | |||||
| </Box> | </Box> | ||||
| {/* <CardActions sx={{ justifyContent: "flex-end" }}> | {/* <CardActions sx={{ justifyContent: "flex-end" }}> | ||||
| <Button variant="text" startIcon={<RestartAlt />}> | <Button variant="text" startIcon={<RestartAlt />}> | ||||