diff --git a/frontend/public/assets/img/plus.svg b/frontend/public/assets/img/plus.svg new file mode 100644 index 0000000..cd05806 --- /dev/null +++ b/frontend/public/assets/img/plus.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index ea35122..ba191cc 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -20,6 +20,7 @@ function App() { return ( + } /> } /> } /> { const generateCode = async () => { try { const res = await api.post("admin/attendance/start"); - const newCode = res.data.data.code; + const newCode = res.data.code; setCode(newCode); } catch (error) { alert( diff --git a/frontend/src/pages/admin/ManageTask.jsx b/frontend/src/pages/admin/ManageTask.jsx index 82075dc..00345d9 100644 --- a/frontend/src/pages/admin/ManageTask.jsx +++ b/frontend/src/pages/admin/ManageTask.jsx @@ -23,22 +23,25 @@ const ManageTask = () => { const closeModal = () => setShowModal(false); return ( -
-
-
- {weekData.map((week, index) => ( -
- - edit handleEditClick(index)} - /> -
- ))} +
+
+
+
+ {weekData.map((week, index) => ( +
+ + edit handleEditClick(index)} + /> +
+ ))} +
+
{showModal && (