Resolved courtsey contract creation issues IO-455

This commit is contained in:
Patrick Fic
2020-12-09 10:32:32 -08:00
parent b7c73d78da
commit 4212ba9c85
36 changed files with 995 additions and 128 deletions

View File

@@ -12,15 +12,21 @@ export default function ContractCreatePageComponent({
loading,
}) {
const { t } = useTranslation();
const CreateButton = (
<Button type="primary" onClick={() => form.submit()} loading={loading}>
{t("general.actions.create")}
</Button>
);
return (
<div>
<Button type="primary" onClick={() => form.submit()} loading={loading}>
{t("general.actions.create")}
</Button>
{CreateButton}
<ContractJobsContainer selectedJobState={selectedJobState} />
<ContractCarsContainer selectedCarState={selectedCarState} form={form} />
<ContractLicenseDecodeButton form={form} />
<ContractFormComponent create form={form} />
{CreateButton}
</div>
);
}