Changeset 3b6962d for reactapp/src/Pages/Subject.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/Subject.js
rc68150f r3b6962d 46 46 47 47 useEffect(() => { 48 const url = `http://192.168.0.1 7:8080/public/subject/${params.subjectId}`;48 const url = `http://192.168.0.19:8080/public/subject/${params.subjectId}`; 49 49 50 50 const fetchData = async () => { … … 67 67 if (auth) { 68 68 setTopicModalDisplay("block"); 69 document.body.style.overflowY = "hidden"; 69 70 } else { 70 71 navigate("/login"); … … 74 75 const handleModalCloseClick = () => { 75 76 setTopicModalDisplay("none"); 77 document.body.style.overflowY = "auto"; 76 78 }; 77 79 … … 81 83 if (!topicTitle.length < 1 && !topicContent.length < 1) { 82 84 const response = await axios( 83 `http://192.168.0.1 7:8080/secure/subject/${params.subjectId}/addThread`,85 `http://192.168.0.19:8080/secure/subject/${params.subjectId}/addThread`, 84 86 { 85 87 method: "post", … … 178 180 value={topicTitle} 179 181 onChange={handleTitleChange} 182 spellCheck={false} 180 183 /> 181 184 </label> … … 188 191 value={topicContent} 189 192 onChange={handleContentChange} 193 spellCheck={false} 190 194 /> 191 195 </label>
Note:
See TracChangeset
for help on using the changeset viewer.