Changeset 3a44163
- Timestamp:
- 07/30/22 00:28:02 (2 years ago)
- Branches:
- main
- Children:
- 2998dc4
- Parents:
- 4a64cf0
- Location:
- reactapp/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Pages/Professor.js
r4a64cf0 r3a44163 1 1 import React, { useEffect, useState } from "react"; 2 import { Link, Outlet, useParams } from "react-router-dom"; 2 import { Outlet, useParams } from "react-router-dom"; 3 import OpinionTree from "../Components/OpinionTree"; 3 4 4 function Professor( ) {5 function Professor(props) { 5 6 let params = useParams(); 6 7 … … 18 19 setLoaded(true); 19 20 } catch (error) { 20 console.log(" error", error);21 console.log("Error", error); 21 22 } 22 23 }; … … 28 29 return ( 29 30 <div> 30 <div>{professor.professorName}</div> 31 <div>{professor.faculty.facultyName}</div> 31 <h2>{professor.professorName}</h2> 32 <h3>{professor.faculty.facultyName}</h3> 33 <h3>Мислења</h3> 34 <div className="opinionTree"> 35 <OpinionTree professor={professor} /> 36 </div> 32 37 <Outlet /> 33 38 </div>
Note:
See TracChangeset
for help on using the changeset viewer.