Repairing Edit Form buttons
This commit is contained in:
@@ -7,6 +7,7 @@ import SaveIcon from '@mui/icons-material/Save';
|
||||
import { FirmContext } from "../../../contexts/FirmContext";
|
||||
import { CrudForm } from "../../../lib/crud/components/crud-form";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { DeleteButton } from "@refinedev/mui";
|
||||
|
||||
type EditProps = {
|
||||
resource: string,
|
||||
@@ -36,8 +37,8 @@ const Edit = <T,>(props: EditProps) => {
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}>
|
||||
<Button variant="contained" size="large"><SaveIcon /></Button>
|
||||
<Button variant="contained" size="large" color="error"><DeleteIcon /></Button>
|
||||
<Button type='submit' variant="contained" size="large"><SaveIcon />Save</Button>
|
||||
<DeleteButton variant="contained" size="large" color="error" recordItemId={record_id}/>
|
||||
</Stack>
|
||||
</CrudForm>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user