Changeset 702ca77 for reactapp/src/Components
- Timestamp:
- 08/19/22 19:10:24 (2 years ago)
- Branches:
- main
- Children:
- 6221ab6
- Parents:
- 6eba109
- Location:
- reactapp/src/Components
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Components/Logout.js
r6eba109 r702ca77 2 2 import AuthApi from "../api/AuthApi"; 3 3 import Cookies from "js-cookie"; 4 import { LogoutButton } from "./Styled/UserDetails.style"; 5 import { Navigate } from "react-router-dom"; 4 6 5 7 function Logout() { … … 11 13 }; 12 14 13 return < button onClick={handleLogout}>Одјави се</button>;15 return <LogoutButton onClick={handleLogout}>Одјави се</LogoutButton>; 14 16 } 15 17 -
reactapp/src/Components/Search.js
r6eba109 r702ca77 15 15 16 16 useEffect(() => { 17 const url = `http://192.168.0.1 8:8080/public/professors/nameContains/${transliterate(17 const url = `http://192.168.0.17:8080/public/professors/nameContains/${transliterate( 18 18 query 19 19 )}`; … … 23 23 const response = await fetch(url); 24 24 var cyclicGraph = await response.json(); 25 var jsogStructure = JSOG.encode(cyclicGraph); // has { '@ref': 'ID' } links instead of cycles25 var jsogStructure = JSOG.encode(cyclicGraph); 26 26 cyclicGraph = JSOG.decode(jsogStructure); 27 27 setProfessors(cyclicGraph); 28 //setLoaded(true);29 28 } catch (error) { 30 console.log("Fetching error occured", error);29 console.log("Fetching error", error); 31 30 } 32 31 }; -
reactapp/src/Components/Styled/Main.style.js
r6eba109 r702ca77 6 6 margin: auto; 7 7 margin-top: 20px; 8 margin-bottom: 20px; 8 9 padding-left: 50px; 9 10 padding-right: 50px; -
reactapp/src/Components/Styled/Search.style.js
r6eba109 r702ca77 30 30 &:hover { 31 31 background-color: papayawhip; 32 border: 1px solid blue;33 text-decoration: underline 1px blue;32 border: 1px solid #0066cc; 33 text-decoration: underline 1px #0066cc; 34 34 } 35 35 padding: 10px;
Note:
See TracChangeset
for help on using the changeset viewer.