|
@@ -11,14 +11,12 @@ import { |
|
|
} from "@mui/material"; |
|
|
} from "@mui/material"; |
|
|
import { useFormContext } from "react-hook-form"; |
|
|
import { useFormContext } from "react-hook-form"; |
|
|
import { useTranslation } from "react-i18next"; |
|
|
import { useTranslation } from "react-i18next"; |
|
|
import ControlledAutoComplete from "../ControlledAutoComplete"; |
|
|
|
|
|
import InputDataGrid from "../useInputDataGrid"; |
|
|
|
|
|
import useInputDataGrid from "../useInputDataGrid"; |
|
|
import useInputDataGrid from "../useInputDataGrid"; |
|
|
import { useMemo, useState } from "react"; |
|
|
import { useMemo, useState } from "react"; |
|
|
import { GridColDef, GridRowModesModel } from "@mui/x-data-grid"; |
|
|
|
|
|
|
|
|
import { GridColDef } from "@mui/x-data-grid"; |
|
|
import { |
|
|
import { |
|
|
|
|
|
InputGridProps, |
|
|
InputDataGridProps, |
|
|
InputDataGridProps, |
|
|
ResultWithId, |
|
|
|
|
|
} from "../useInputDataGrid/useInputDataGrid"; |
|
|
} from "../useInputDataGrid/useInputDataGrid"; |
|
|
type Props = { |
|
|
type Props = { |
|
|
isEditMode: boolean; |
|
|
isEditMode: boolean; |
|
@@ -73,6 +71,8 @@ const MaterialDetails: React.FC<Props> = ({ isEditMode }) => { |
|
|
MaterialUomInputGridProps |
|
|
MaterialUomInputGridProps |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
const test: InputGridProps = {} |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Card sx={{ display: "block" }}> |
|
|
<Card sx={{ display: "block" }}> |
|
|
<CardContent component={Stack} spacing={4}> |
|
|
<CardContent component={Stack} spacing={4}> |
|
@@ -213,7 +213,9 @@ const MaterialDetails: React.FC<Props> = ({ isEditMode }) => { |
|
|
/> |
|
|
/> |
|
|
</Grid> |
|
|
</Grid> |
|
|
<Grid item xs={6}> |
|
|
<Grid item xs={6}> |
|
|
<MaterialTypeInputGrid /> |
|
|
|
|
|
|
|
|
<MaterialTypeInputGrid |
|
|
|
|
|
// {...test} |
|
|
|
|
|
/> |
|
|
</Grid> |
|
|
</Grid> |
|
|
<Grid item xs={6}> |
|
|
<Grid item xs={6}> |
|
|
<MaterialUomInputGrid /> |
|
|
<MaterialUomInputGrid /> |
|
|