+ {!hideClient ?
+
+
+ 0 ? clientList.map((item: IClient) => ({ label: item.name, value: String(item.id) })) : []}
+ maxCount={1}
+ />
+
: null
+ }
+ {!hideEndUser ?
+
+
+ 0 ? endUserList.map((item: IEndUser) => ({ label: item.name, value: String(item.id) })) : []}
+ maxCount={1}
+ />
+
: null
+ }
{!hideCategory ?
@@ -163,6 +209,27 @@ export const FilterModal: FC
= ({ hideStatus, hideAssignedTo, hideDateFil
: null
}
+ {!hideProjectDateFilter && category === 'project' ?
+
+
+ setProjectDate(d as DateRange | undefined)} mode='range' />
+
+ : null
+ }
+ {!hideWoDateFilter && category === 'wo' ?
+
+
+ setWoDate(d as DateRange | undefined)} mode='range' />
+
+ : null
+ }
+ {!hideImDateFilter && category === 'im' ?
+
+
+ setImDate(d as DateRange | undefined)} mode='range' />
+
+ : null
+ }
{!hideStatus ?
@@ -175,22 +242,6 @@ export const FilterModal: FC
= ({ hideStatus, hideAssignedTo, hideDateFil
/>
: null
}
- {!hideDateFilters ?
- <>
-
-
- setProjectDate(d as DateRange | undefined)} mode='range' />
-
-
-
- setWoDate(d as DateRange | undefined)} mode='range' />
-
-
-
- setImDate(d as DateRange | undefined)} mode='range' />
-
- > : null
- }
{!hideAssignedTo ?
diff --git a/app/(dashboard)/task/component/FormUpdateStatus.tsx b/app/(dashboard)/task/component/FormUpdateStatus.tsx
index 396302e..ec11140 100644
--- a/app/(dashboard)/task/component/FormUpdateStatus.tsx
+++ b/app/(dashboard)/task/component/FormUpdateStatus.tsx
@@ -37,7 +37,7 @@ type Props = {
const FormUpdateStatus: FC
= ({ title, data, onCancel, onSuccess }) => {
const [isLoading, setIsLoading] = useState(false)
- const { data: statusList, isLoading: isLoadingStatus } = useFetchWithAxios('/project-status')
+ const { data: statusList, isLoading: isLoadingStatus } = useFetchWithAxios('/project-assignment-status')
const form = useForm({
resolver: yupResolver(validationSchema),
});
@@ -119,7 +119,7 @@ const FormUpdateStatus: FC = ({ title, data, onCancel, onSuccess }) => {
Note / Remarks
-
+
diff --git a/app/(dashboard)/task/component/HomeTask.tsx b/app/(dashboard)/task/component/HomeTask.tsx
index f2c23e5..90d2a50 100644
--- a/app/(dashboard)/task/component/HomeTask.tsx
+++ b/app/(dashboard)/task/component/HomeTask.tsx
@@ -11,6 +11,7 @@ import FilterComponent from './FilterComponent';
import {
Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue,
} from '@/components/ui/select';
+import { ManageTeam } from './ManageTeam';
interface ShellProps {
currentView: 'grid' | 'table';
@@ -65,7 +66,9 @@ export default function HomeTask({ currentView }: ShellProps) {