remove regularization method and created new component
This commit is contained in:
parent
1483cab13f
commit
6a6f0356bc
@ -33,7 +33,7 @@ const AttendancePage = () => {
|
|||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
const [formData, setFormData] = useState({
|
const [formData, setFormData] = useState({
|
||||||
time: "",
|
markTime: "",
|
||||||
description: "",
|
description: "",
|
||||||
date: new Date().toLocaleDateString(),
|
date: new Date().toLocaleDateString(),
|
||||||
});
|
});
|
||||||
@ -69,7 +69,9 @@ const AttendancePage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const handleSubmit = ( formData ) =>{
|
const handleSubmit = ( formData ) =>
|
||||||
|
{
|
||||||
|
debugger
|
||||||
dispatch( markCurrentAttendance( formData ) ).then( ( action ) =>
|
dispatch( markCurrentAttendance( formData ) ).then( ( action ) =>
|
||||||
{
|
{
|
||||||
const updatedAttendance = attendances.map(item =>
|
const updatedAttendance = attendances.map(item =>
|
||||||
@ -133,7 +135,7 @@ const AttendancePage = () => {
|
|||||||
id="DataTables_Table_0_length"
|
id="DataTables_Table_0_length"
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
((loginUser && loginUser?.projects.length > 1) ) && (<label>
|
((loginUser && loginUser?.projects?.length > 1) ) && (<label>
|
||||||
<select
|
<select
|
||||||
name="DataTables_Table_0_length"
|
name="DataTables_Table_0_length"
|
||||||
aria-controls="DataTables_Table_0"
|
aria-controls="DataTables_Table_0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user