refactor(FE): Remove unused imports and redundant code

This commit is contained in:
rstubryan
2026-02-20 14:17:26 +07:00
parent de0f9ae985
commit 1f2f3acebb
90 changed files with 222 additions and 474 deletions
@@ -34,7 +34,6 @@ const DeliveryOrderProductForm = ({
salesOrders,
initialValues,
exisitingValues,
onSubmitForm,
onUpdateForm,
isLoading,
}: {
@@ -96,12 +95,12 @@ const DeliveryOrderProductForm = ({
);
// Options Week dari minggu 1 - 22
const optionsWeek = useMemo(() => {
return Array.from({ length: 22 }, (_, i) => ({
value: i + 1,
label: `Week ${i + 1}`,
}));
}, []);
// const optionsWeek = useMemo(() => {
// return Array.from({ length: 22 }, (_, i) => ({
// value: i + 1,
// label: `Week ${i + 1}`,
// }));
// }, []);
const options = exisitingValues
?.map((item) => {
@@ -139,12 +139,12 @@ const SalesOrderProductForm = ({
} = useSelect<Kandang>(WarehouseApi.basePath, 'id', 'name');
// Options Week dari minggu 1 - 22
const optionsWeek = useMemo(() => {
return Array.from({ length: 22 }, (_, i) => ({
value: i + 1,
label: `Week ${i + 1}`,
}));
}, []);
// const optionsWeek = useMemo(() => {
// return Array.from({ length: 22 }, (_, i) => ({
// value: i + 1,
// label: `Week ${i + 1}`,
// }));
// }, []);
const {
options: warehouseSourceOptions,