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

Approve and Deny Businesses #45

Closed
joshualipton opened this issue Feb 21, 2024 · 1 comment
Closed

Approve and Deny Businesses #45

joshualipton opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@joshualipton
Copy link
Collaborator

Overview

"Computer programmers obtain quasi-magical, superhuman coding ability when they have a blood alcohol concentration percentage between 0.129% and 0.138%" - Former CEO of Microsoft

Running the program

  1. Clone the repo through git clone
  2. Navigate to the directory of your fph-frontend repo using the cd command.
  3. Run git checkout dev and then git pull.
  4. Create a branch off the dev branch in fph-frontend. For the name of the branch, use what the title of this issue as. Use git checkout -b <insert_branch_name>.
  5. Install the necessary dependencies through running yarn. Test that your application works by running yarn format followed by yarn dev
  6. Create your necessary code through creating files within the component folder.
  7. Run the code with yarn (to install), yarn format (to format the code), and yarn start (to start the program).
  8. Access localhost:3000/.

Task

Toast
Modal

You will be implementing the functionality to approve and deny pending businesses. You can reference this task to find the logic that created the Approve and Deny buttons. They currently have no logic behind them. When the button is clicked, you should bring the user back to the pending applilcation table page and the toast should pop up in the bottom right corner. Show the green toast for an approved business and a yellow one for a denied business. Lastly, when a user clicks on the modal they should be able to undo the action with the modal linked above showing up. If the action is undone, the status of the business should return to pending and they should appear in the pending businesses table again.

Reference the documentation for Toast and Modal

Support

Feel free to reach out to Madhu and Josh on Slack/Messenger for assistance.

@MaanPatel2005
Copy link
Contributor

Issue was resolved

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

No branches or pull requests

3 participants