.
This commit is contained in:
parent
d919ccedf6
commit
723f58293a
@ -2,13 +2,11 @@
|
||||
|
||||
import type { CustomerSelectionOption } from "@erp/customers";
|
||||
import { Button } from "@repo/shadcn-ui/components";
|
||||
import { cn } from "@repo/shadcn-ui/lib/utils";
|
||||
|
||||
import { ProformaUpdateRecipientEditor } from ".";
|
||||
|
||||
import { useTranslation } from "../../../../i18n";
|
||||
import type { Proforma } from "../../../shared/entities";
|
||||
import { ProformaHeaderFieldsCard } from "../blocks/proforma-header-fields-card";
|
||||
|
||||
import { ProformaUpdateHeaderEditor } from "./proforma-update-header-editor";
|
||||
|
||||
@ -60,22 +58,4 @@ export const ProformaUpdateEditorForm = ({
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
|
||||
return (
|
||||
<form id={formId} noValidate onSubmit={onSubmit}>
|
||||
<section className={cn("rounded-xl border bg-background p-4 md:p-6", className)}>
|
||||
<ProformaHeaderFieldsCard className="grid grid-cols-1 gap-6 md:grid-cols-12" />
|
||||
|
||||
<div className="grid grid-cols-1 gap-4 md:grid-cols-12">
|
||||
<Button disabled={isSubmitting} onClick={onReset} type="button" variant="outline">
|
||||
{t("common.reset", "Restablecer")}
|
||||
</Button>
|
||||
|
||||
<Button disabled={isSubmitting} type="submit">
|
||||
{isSubmitting ? t("common.saving", "Guardando...") : t("common.save", "Guardar")}
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user