Changeset 3b6962d for reactapp/src/Pages/Professor.js
- Timestamp:
- 11/23/22 12:15:28 (20 months ago)
- Branches:
- main
- Children:
- af801e3, e49d1b6
- Parents:
- c68150f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Pages/Professor.js
rc68150f r3b6962d 39 39 40 40 useEffect(() => { 41 const url = `http://192.168.0.1 7:8080/public/professor/${params.professorId}`;41 const url = `http://192.168.0.19:8080/public/professor/${params.professorId}`; 42 42 43 43 const fetchProfessor = async () => { … … 60 60 if (auth) { 61 61 setPostModalDisplay("block"); 62 document.body.style.overflowY = "hidden"; 62 63 } else { 63 64 navigate("/login"); … … 67 68 const handleModalCloseClick = () => { 68 69 setPostModalDisplay("none"); 70 document.body.style.overflowY = "auto"; 69 71 }; 70 72 … … 74 76 if (!postContent.length < 1) { 75 77 const response = await axios( 76 `http://192.168.0.1 7:8080/secure/professor/${params.professorId}/addOpinion`,78 `http://192.168.0.19:8080/secure/professor/${params.professorId}/addOpinion`, 77 79 { 78 80 method: "post", … … 152 154 rows="8" 153 155 cols="100" 156 spellCheck={false} 154 157 value={postContent} 155 158 onChange={handleContentChange}
Note:
See TracChangeset
for help on using the changeset viewer.