diff --git a/src/components/pages/production/uniformity/UniformityTable.tsx b/src/components/pages/production/uniformity/UniformityTable.tsx index 018e2537..e9405dd6 100644 --- a/src/components/pages/production/uniformity/UniformityTable.tsx +++ b/src/components/pages/production/uniformity/UniformityTable.tsx @@ -1242,156 +1242,158 @@ const UniformityTable = () => { ref={filterModal.ref} className={{ modal: 'p-0', - modalBox: 'p-0 rounded-2xl xl:max-w-4/12 max-w-sm', + modalBox: 'p-0 rounded-[0.875rem]', }} > -
+
{/* Modal Header */} -
+
-

Filter Data

+

Filter Data

-
-
+
+
+ {/* Rentang Waktu */}
- + Tanggal + +
+ +
+ +
+
+ +
+ { + handleFilterLocationChange(value); + }} + options={filterLocationOptions} + onInputChange={setFilterLocationInputValue} + isLoading={isLoadingFilterLocations} + onMenuScrollToBottom={loadMoreFilterLocations} isError={ - filterFormik.touched.start_date && - Boolean(filterFormik.errors.start_date) + filterFormik.touched.location && + Boolean(filterFormik.errors.location) } - errorMessage={filterFormik.errors.start_date} + errorMessage={filterFormik.errors.location} + isClearable className={{ wrapper: 'w-full' }} />
- { + handleFilterProjectFlockChange(value); + }} + options={filterProjectFlockOptions} + onInputChange={setFilterProjectFlockSearchValue} + isLoading={isLoadingFilterProjectFlocks} + onMenuScrollToBottom={loadMoreFilterProjectFlocks} + isDisabled={!filterFormik.values.location} isError={ - filterFormik.touched.end_date && - Boolean(filterFormik.errors.end_date) + filterFormik.touched.project_flock && + Boolean(filterFormik.errors.project_flock) } - errorMessage={filterFormik.errors.end_date} + errorMessage={filterFormik.errors.project_flock} + isClearable className={{ wrapper: 'w-full' }} />
-
-
- { - handleFilterLocationChange(value); - }} - options={filterLocationOptions} - onInputChange={setFilterLocationInputValue} - isLoading={isLoadingFilterLocations} - onMenuScrollToBottom={loadMoreFilterLocations} - isError={ - filterFormik.touched.location && - Boolean(filterFormik.errors.location) - } - errorMessage={filterFormik.errors.location} - isClearable - className={{ wrapper: 'w-full' }} - /> -
- -
- { - handleFilterProjectFlockChange(value); - }} - options={filterProjectFlockOptions} - onInputChange={setFilterProjectFlockSearchValue} - isLoading={isLoadingFilterProjectFlocks} - onMenuScrollToBottom={loadMoreFilterProjectFlocks} - isDisabled={!filterFormik.values.location} - isError={ - filterFormik.touched.project_flock && - Boolean(filterFormik.errors.project_flock) - } - errorMessage={filterFormik.errors.project_flock} - isClearable - className={{ wrapper: 'w-full' }} - /> -
- -
- { - handleFilterKandangChange(value); - }} - options={filterKandangOptions} - isDisabled={!filterFormik.values.project_flock} - isError={ - filterFormik.touched.kandang && - Boolean(filterFormik.errors.kandang) - } - errorMessage={filterFormik.errors.kandang} - isClearable - className={{ wrapper: 'w-full' }} - /> -
-
- -
- {/* Error List Alert */} - {formErrorList.length > 0 && ( -
- +
+ { + handleFilterKandangChange(value); + }} + options={filterKandangOptions} + isDisabled={!filterFormik.values.project_flock} + isError={ + filterFormik.touched.kandang && + Boolean(filterFormik.errors.kandang) + } + errorMessage={filterFormik.errors.kandang} + isClearable + className={{ wrapper: 'w-full' }} + />
- )} -
- {/* Action Buttons */} -
- - -
+ {formErrorList.length > 0 && ( +
+ +
+ )} +
+ + {/* Action Buttons */} +
+ + +
+