Changeset e958037 for reactapp/src/Components
- Timestamp:
- 07/30/22 20:37:52 (2 years ago)
- Branches:
- main
- Children:
- 5347491
- Parents:
- 2998dc4
- Location:
- reactapp/src/Components
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Components/OpinionTree.js
r2998dc4 re958037 1 import { OpinionCard } from "./OpinionCard.style"; 2 1 3 function OpinionTree({ professor }) { 2 4 var renderedOpinionIds = []; … … 8 10 return ( 9 11 <div key={child.postId}> 10 <p>{child.author.username} реплицирал</p> 12 <p> 13 <a href="#">{child.author.username}</a> реплицирал 14 </p> 11 15 <p>Содржина: {child.content}</p> 12 16 {child.children.map((childOfChild) => displayChildPosts(childOfChild))} … … 22 26 return ( 23 27 <div key={opinion.postId}> 24 <p>{opinion.author.username} напишал</p> 25 <p>Наслов: {opinion.title}</p> 26 <p>Содржина: {opinion.content}</p> 28 <OpinionCard> 29 <p> 30 <a href="#">{opinion.author.username}</a> напишал 31 </p> 32 33 <p>{opinion.title}</p> 34 <p>{opinion.content}</p> 35 <p>{Date(opinion.timePosted)}</p> 36 </OpinionCard> 27 37 {opinion.children.map((child) => displayChildPosts(child))} 28 <hr />29 38 </div> 30 39 );
Note:
See TracChangeset
for help on using the changeset viewer.