refactor(FE): Fix multiline formatting for isError conditions

This commit is contained in:
rstubryan
2026-02-25 15:57:25 +07:00
parent a75d84556a
commit a89e83af29
4 changed files with 17 additions and 7 deletions
@@ -849,7 +849,8 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => {
className={{ wrapper: 'w-full' }}
isNestedModal
isError={
formik.touched.start_date && Boolean(formik.errors.start_date)
formik.touched.start_date &&
Boolean(formik.errors.start_date)
}
/>
<hr className='w-full max-w-3 h-px border-base-content/10' />
@@ -862,7 +863,9 @@ const CustomerPaymentTab = ({ tabId }: CustomerPaymentTabProps) => {
className={{ wrapper: 'w-full' }}
isNestedModal
isError={
(formik.touched.end_date && Boolean(formik.errors.end_date)) || hasDateError
(formik.touched.end_date &&
Boolean(formik.errors.end_date)) ||
hasDateError
}
/>
</div>