refactor(FE): refactor UI Sales Order and Delivery Order

This commit is contained in:
randy-ar
2026-02-02 22:00:42 +07:00
parent a57f65a420
commit 17589cb2b4
15 changed files with 2338 additions and 821 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ const AlertErrorList = ({
formErrorList,
className,
onClose,
title,
}: {
formErrorList: string[];
className?: {
@@ -26,6 +27,7 @@ const AlertErrorList = ({
li?: string;
};
onClose: () => void;
title?: string;
}) => {
if (formErrorList.length === 0) return null;
@@ -51,7 +53,7 @@ const AlertErrorList = ({
height={20}
/>
<span className={cn('font-semibold text-sm', className?.headerText)}>
Terdapat {formErrorList.length} error pada form:
{title || `Terdapat ${formErrorList.length} error pada form:`}
</span>
</div>
<Button