Skip to content
This repository was archived by the owner on Sep 13, 2022. It is now read-only.

Mohammed Chowdhury - Instructor : Edgardo , TA : Silu#58

Open
moiscoding wants to merge 1 commit intoCUNYTechPrep:mainfrom
moiscoding:main
Open

Mohammed Chowdhury - Instructor : Edgardo , TA : Silu#58
moiscoding wants to merge 1 commit intoCUNYTechPrep:mainfrom
moiscoding:main

Conversation

@moiscoding
Copy link

What type of PR is this? (check all applicable)

  • ♻️ Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 👷 Optimization
  • 📝 Documentation Update
  • 🔖 Release
  • 🚩 Other

Description

This PR [adds/removes/fixes/replaces] this [feature/bug/etc].

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

  • 📜 readme
  • 📜 contributing.md
  • 📓 docs
  • 📕 storybook
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@moiscoding
Copy link
Author

inside of the BoardSwitcher class , I made a constructor that takes in a prop and pass it into the
super() method, as required by react

inside of the state object, I created a currentSelected key, instantiated with the value 0, to signify the
0th box will be highlighed when button is pressed

I then created a method / event handler called "updateCurrentSelected()" t, and is responsible for
updting the state object, created in the constructor. When we setState , ie. update the state object , we increment the currentSelected by 1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant