From 492e0215bec5d961f3635443a07d1a8d2d9672e9 Mon Sep 17 00:00:00 2001
From: Aaditya Jain <133569212+Aaditya019Jain@users.noreply.github.com>
Date: Sun, 15 Oct 2023 00:01:11 +0530
Subject: [PATCH 4/6] Updated project form
---
frontend/src/pages/ProjectFrom.jsx | 72 +++++++++++++++++++-----------
1 file changed, 47 insertions(+), 25 deletions(-)
diff --git a/frontend/src/pages/ProjectFrom.jsx b/frontend/src/pages/ProjectFrom.jsx
index c6215d8..f37d1cf 100644
--- a/frontend/src/pages/ProjectFrom.jsx
+++ b/frontend/src/pages/ProjectFrom.jsx
@@ -9,16 +9,37 @@ import MyComponent2 from "../components/MyComponent2";
export default function ProjectForm(){
const [projectlist , setProjectlist] = useState({
- title : '',
- cateogary : '',
- mentee_min : '',
- mentee_max : '',
- description : '',
- timeline : '',
- banner_image : '',
+ title: '',
+ abc: '',
+ categary: '',
+ mentee_min: '',
+ mentee_max: '',
+ description: '',
+ timeline: '',
+ banner_image: '',
})
+ const detailsChange = (e) => {
+ const {id,value} = e.target
+ setProjectlist({
+ ...projectlist,
+ [id] : value,
+ // console.log(projectlist)
+ })
+ console.log('id:', id);
+ console.log('value:', value);
+ }
+
+ const detailsSubmit = (e) => {
+ console.log(projectlist)
+ axios.post('/api/dashboard/mentor/submit/',projectlist)
+ .then(res =>{
+ console.log(res)
+ }).catch(err =>
+ console.log(err))
+ }
+
const handleRollNumberChange = (e) => {
var roll = e.target.value ? e.target.value : null;
@@ -30,6 +51,7 @@ export default function ProjectForm(){
alert("No such user exists")
e.target.style.backgroundColor = 'red';
+
}
else{
e.target.style.backgroundColor = 'green';
@@ -51,7 +73,7 @@ export default function ProjectForm(){
Project Form
+
>
)
}
From 30f10250159130a6e993b01ee3ca3fe3418caf21 Mon Sep 17 00:00:00 2001
From: Aaditya Jain <133569212+Aaditya019Jain@users.noreply.github.com>
Date: Sun, 15 Oct 2023 00:35:23 +0530
Subject: [PATCH 5/6] Update README.md
---
frontend/README.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/frontend/README.md b/frontend/README.md
index abc98fc..a224ed5 100644
--- a/frontend/README.md
+++ b/frontend/README.md
@@ -29,4 +29,8 @@ This project aims at creating a functional, user-friendly portal for WnCC's annu
You can find more such improvements in issues on which you can contribute.
+## Set Up on MAC OS
+-First step is to clone the repository to your system using the commadb
+
+
Created with :heart: by WnCC
From 3317e3ad07557f9802c15027bf468ec6c452218b Mon Sep 17 00:00:00 2001
From: Aaditya Jain <133569212+Aaditya019Jain@users.noreply.github.com>
Date: Sun, 15 Oct 2023 00:37:13 +0530
Subject: [PATCH 6/6] Update README.md
---
frontend/README.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/frontend/README.md b/frontend/README.md
index a224ed5..823c815 100644
--- a/frontend/README.md
+++ b/frontend/README.md
@@ -29,8 +29,6 @@ This project aims at creating a functional, user-friendly portal for WnCC's annu
You can find more such improvements in issues on which you can contribute.
-## Set Up on MAC OS
--First step is to clone the repository to your system using the commadb
Created with :heart: by WnCC