diff --git a/src/components/Acceptance/Acceptance.tsx b/src/components/Acceptance/Acceptance.tsx index d483def0968ef5b31424a1dba7f9482457e56269..3bd5afe92de2e6d9da3fc6b39bec25fa975069c4 100644 --- a/src/components/Acceptance/Acceptance.tsx +++ b/src/components/Acceptance/Acceptance.tsx @@ -143,18 +143,13 @@ const Acceptance = () => { const url = new URL( process.env.REACT_APP_API_URL + `/api/scholarship/acceptance/${sid}` ) - console.log(url.toString()) axiosInstance .post(url.toString(), { status: "accepted", user_id: Number(selectedID) }) - .then(function (response) { - console.log(response) - }) - .catch(function (error) { - console.log(error) - }) + .then(function (response) {}) + .catch(function (error) {}) toast({ title: "Acceptance set", @@ -171,17 +166,10 @@ const Acceptance = () => { const url = new URL( process.env.REACT_APP_API_URL + `/api/scholarship/acceptance/${sid}` ) - axiosInstance - .post(url.toString(), { - status: "rejected", - user_id: Number(selectedID) - }) - .then(function (response) { - console.log(response) - }) - .catch(function (error) { - console.log(error) - }) + axiosInstance.post(url.toString(), { + status: "rejected", + user_id: Number(selectedID) + }) toast({ title: "Rejection set", diff --git a/src/components/Assignment/DeleteAssignmentDialog.tsx b/src/components/Assignment/DeleteAssignmentDialog.tsx index 8ed632fefb5887ec4a4826ae6968e10b46b67743..50f98c1096351f4b72de382bcb01a26ce1d8ed4f 100644 --- a/src/components/Assignment/DeleteAssignmentDialog.tsx +++ b/src/components/Assignment/DeleteAssignmentDialog.tsx @@ -36,8 +36,7 @@ export const DeleteAssignmentDialog: React.FC<DeleteAlertDialogProps> = ({ scholarship_id + "/" + assignment_id - const response = await axiosInstance.delete(URL) - console.log(response) + await axiosInstance.delete(URL) onClose() onDeleteSuccess() toast({ diff --git a/src/components/Assignment/Submission.tsx b/src/components/Assignment/Submission.tsx index 1e98cfe544746eebf5a61d4a6a92112f004cca17..99d3739860efe4346e45812cd8baa6d9e87975fa 100644 --- a/src/components/Assignment/Submission.tsx +++ b/src/components/Assignment/Submission.tsx @@ -31,7 +31,6 @@ export const Submissions = () => { const fetchFile = async () => { try { const response = await axiosInstance.get(FILE_URL) - console.log(response.data.data.files) setSubmissionFile(response.data.data.files) const userDetailsPromises = response.data.data.files.map( diff --git a/src/components/Register/RegisterOrg.tsx b/src/components/Register/RegisterOrg.tsx index f0ebbe4e19171cfe4d49bdb73455c6209984d91b..6723baeb6425003668633a443a2d31d8e63ef40b 100644 --- a/src/components/Register/RegisterOrg.tsx +++ b/src/components/Register/RegisterOrg.tsx @@ -57,7 +57,6 @@ const RegisterOrg = () => { const [errMsg, setErrMsg] = useState("") const handleSubmit = async (e: any) => { - console.log("SUBMIT") e.preventDefault() // check if there are some empty fields if ( diff --git a/src/components/Register/RegisterUniversity.tsx b/src/components/Register/RegisterUniversity.tsx index 4b7b3cf5d15a6c6e024269119e9b08a811dc3de2..fdd5a6e1e5ca4dfea8f3cb9dcab5d797d2357d12 100644 --- a/src/components/Register/RegisterUniversity.tsx +++ b/src/components/Register/RegisterUniversity.tsx @@ -18,7 +18,7 @@ import { Alert, AlertIcon } from "@chakra-ui/react" -import { ViewIcon, ViewOffIcon, WarningIcon } from "@chakra-ui/icons" +import { ViewIcon, ViewOffIcon } from "@chakra-ui/icons" import { Link } from "react-router-dom" import { FaSun, FaMoon } from "react-icons/fa" import useAxiosPrivate from "../../hooks/axiosPrivate" @@ -54,7 +54,6 @@ const RegisterUni = () => { const [errMsg, setErrMsg] = useState("") const handleSubmit = async (e: any) => { - console.log("SUBMIT") e.preventDefault() // check if there are some empty fields if ( @@ -84,7 +83,7 @@ const RegisterUni = () => { return } try { - const response = await axiosInstance.post( + await axiosInstance.post( REGISTER_URL, { name: name, diff --git a/src/components/Report/Report.tsx b/src/components/Report/Report.tsx index 4c51a81bfdb074b384e702b35744eaa6674d6684..93edbd60c92b819fa136bc27a367e3b6f7f49aea 100644 --- a/src/components/Report/Report.tsx +++ b/src/components/Report/Report.tsx @@ -59,7 +59,6 @@ const Report: React.FC = () => { params.append("name", search) params.append("itemsperpage", String(itemsPerPage)) params.append("currentPage", String(currentPage)) - console.log(params.toString()) url.search = params.toString() const response = await axiosInstance.get(url.toString()) const students = await response.data