SE701-T5 / Frontend

This is the frontend repo of Uni-forum, associated with the University of Auckland, SOFTENG701. This repo will be linked to Netlify for ease of deployment and code review
MIT License
1 stars 22 forks source link

Post page #38

Closed Tvo465 closed 2 years ago

Tvo465 commented 2 years ago

Description

Contains the full post details contains comments view comments can have upvotes and downvotes and a number that shows the net value Button to add comment View to add new comment

Link for changes to post page: https://deploy-preview-38--uniforum.netlify.app/post/235

Related Issue

Solves #24

Type of change

How Has This Been Tested?

Manually tested it locally. Chrome using windows 11

Checklist:

For more information, refer to the Contributing Guidelines document.

netlify[bot] commented 2 years ago

✅ Deploy Preview for uniforum ready!

🔨 Explore the source changes: a8adc01c3645c36bd18340d261921713153fe5dc

🔍 Inspect the deploy log: https://app.netlify.com/sites/uniforum/deploys/6235a17896660d0009989d3a

😎 Browse the preview: https://deploy-preview-38--uniforum.netlify.app/

christopher-alba commented 2 years ago

The page looks good! I'm wondering what the purpose of the file src/pages/Post/Reply/index.js is? From what I can see it's just importing a component then exporting it again - can't we directly import the component wherever we need it without going through this file?

Yup so the purpose of this file is to reduce the specificity when importing a component. So instead of ./foldername/Component.jsx , you just import with ./foldername