remove regularization method and created new component

This commit is contained in:
Pramod Mahajan 2025-04-09 11:36:49 +05:30
parent 1483cab13f
commit 6a6f0356bc

View File

@ -33,7 +33,7 @@ const AttendancePage = () => {
const dispatch = useDispatch();
const [formData, setFormData] = useState({
time: "",
markTime: "",
description: "",
date: new Date().toLocaleDateString(),
});
@ -69,7 +69,9 @@ const AttendancePage = () => {
};
const handleSubmit = ( formData ) =>{
const handleSubmit = ( formData ) =>
{
debugger
dispatch( markCurrentAttendance( formData ) ).then( ( action ) =>
{
const updatedAttendance = attendances.map(item =>
@ -133,7 +135,7 @@ const AttendancePage = () => {
id="DataTables_Table_0_length"
>
{
((loginUser && loginUser?.projects.length > 1) ) && (<label>
((loginUser && loginUser?.projects?.length > 1) ) && (<label>
<select
name="DataTables_Table_0_length"
aria-controls="DataTables_Table_0"