Skip to content

Commit 8670ae3

Browse files
committed
changes to student
1 parent 39dcadf commit 8670ae3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/pages/Programme.js

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function Programme() {
3838
}
3939

4040
return (
41-
4241
<>
4342
<div className="text-gray-600 body-font w-full h-full">
4443
<div className="container flex flex-col px-5 py-12 mx-auto" style={{ height: "100%" }}>

src/pages/Students.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ function Students() {
77

88

99
const [state,setState] = useState("2021");
10-
const {data} = useFetch(`/dept/${useParams()?.dept}/Student/?q=${state}`);
10+
const {data} = useFetch(`/dept/${useParams()?.dept}/Student`);
11+
12+
console.log(data)
1113

1214
return (
1315
<div className='w-[98%] rounded-[9px] border border-[rgba(0,105,140,0.2)] p-4 mx-1 xl:mx-3 my-[60px] pt-[54px] place-items-center'>

src/pages/Syllabus.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import useFetch from '../hooks/useFetch'
66
function Syllabus() {
77

88
const {data} = useFetch(`/dept/${useParams()?.dept}/Syllabus`);
9+
console.log(data);
910
const [state,setState]= useState("B.Tech")
1011
return (
1112
<div className='w-[98%] rounded-[9px] border border-[rgba(0,105,140,0.2)] p-4 mx-1 xl:mx-3 my-[60px] pt-[54px] place-items-center'>

0 commit comments

Comments
 (0)