mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
refactor(FE): Remove unused imports and redundant code
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user