Added save warning to cc edit page BOD-127
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import CourtesyCarFormComponent from "../../components/courtesy-car-form/courtesy-car-form.component"
|
||||
import CourtesyCarFormComponent from "../../components/courtesy-car-form/courtesy-car-form.component";
|
||||
|
||||
export default function CourtesyCarCreateComponent() {
|
||||
return <CourtesyCarFormComponent />;
|
||||
export default function CourtesyCarCreateComponent({ form }) {
|
||||
return <CourtesyCarFormComponent form={form} />;
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@ import React from "react";
|
||||
import CourtesyCarCreateFormComponent from "../../components/courtesy-car-form/courtesy-car-form.component";
|
||||
import CourtesyCarContractListComponent from "../../components/courtesy-car-contract-list/courtesy-car-contract-list.component";
|
||||
|
||||
export default function CourtesyCarDetailPageComponent({ contracts }) {
|
||||
export default function CourtesyCarDetailPageComponent({ contracts, form }) {
|
||||
return (
|
||||
<div>
|
||||
<CourtesyCarCreateFormComponent />
|
||||
<CourtesyCarCreateFormComponent form={form} />
|
||||
<CourtesyCarContractListComponent contracts={contracts} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -117,6 +117,7 @@ export function CourtesyCarDetailPageContainer({
|
||||
>
|
||||
<CourtesyCarDetailPageComponent
|
||||
contracts={data ? data.courtesycars_by_pk.cccontracts : []}
|
||||
form={form}
|
||||
/>
|
||||
</Form>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user