mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
refactor(FE): refactor UI Sales Order and Delivery Order
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user