developer-delta / halogen

A web based application to add better lighting to video calls.
MIT License
4 stars 11 forks source link

"Lift up" `userData` state #187

Closed mikelbrierly closed 3 years ago

mikelbrierly commented 3 years ago

User Story:

As a developer, I want to be able to access the userData state in multiple components, So that our data and displayed information stays in sync, and is easy to manipulate


Acceptance Criteria:

Currently we are defining userData and setUserData variables inside the Passport.js file to manage state. This means that their values are only available inside of Passport. This is problematic because we want to store state data in userData that will be eventually be referenced by other components, such as Palette and SaveModal.


CD2AE706-C504-4787-852A-31E73A44BD1B

Note: It can be helpful to comment out and copy the chunks of code you're moving, rather than just cutting and pasting, so you can look back on how it used to work