Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor FeedbackModal.jsx #5

Open
stevem-zhou opened this issue Dec 12, 2023 · 1 comment · May be fixed by #14
Open

Refactor FeedbackModal.jsx #5

stevem-zhou opened this issue Dec 12, 2023 · 1 comment · May be fixed by #14
Assignees

Comments

@stevem-zhou
Copy link
Collaborator

stevem-zhou commented Dec 12, 2023

Instructions

  • Refactor FeedbackModal.jsx under src/components/FeedbackModal

Acceptance Criteria

  • Refactor handleFeedback, utilize ApiUtils.js for API calls

  • Move any useState, Variables definition to the top of React Component

  • Move ternary operations → should be its own variable in a function (not inside the return statement)

  • Identify & Create functions for callback functions

Notes

Steps to Run React on your computer:

  • Clone the Frontend & Backend repos into 1 folder
  • npm install on both
  • npm start on both

How To Access FeedbackModal:

image

  • Run your frontend + backend localhost
  • Sign In to ZotNFound with UCI email
  • Create a test item
    • Press on List an Item
    • Follow the steps to post an item
    • In results bar, click on item and click resolve

Resources

@aryanm5
Copy link

aryanm5 commented Dec 20, 2023

I think the link for the refactor example for callback functions is wrong. It sends me to the ternary example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants