Changeset 3a44163 for reactapp


Ignore:
Timestamp:
07/30/22 00:28:02 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Children:
2998dc4
Parents:
4a64cf0
Message:

created OpinionTree component

Location:
reactapp/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Pages/Professor.js

    r4a64cf0 r3a44163  
    11import React, { useEffect, useState } from "react";
    2 import { Link, Outlet, useParams } from "react-router-dom";
     2import { Outlet, useParams } from "react-router-dom";
     3import OpinionTree from "../Components/OpinionTree";
    34
    4 function Professor() {
     5function Professor(props) {
    56  let params = useParams();
    67
     
    1819        setLoaded(true);
    1920      } catch (error) {
    20         console.log("error", error);
     21        console.log("Error", error);
    2122      }
    2223    };
     
    2829    return (
    2930      <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>
    3237        <Outlet />
    3338      </div>
Note: See TracChangeset for help on using the changeset viewer.