guitar-strings-123 / capstone-project

0 stars 1 forks source link

refactor code smell #250

Closed bryceAM closed 1 year ago

bryceAM commented 1 year ago

Clean up the code to refactor and remove old code smell due to legacy code design that was meant to facilitate the former localStorage items and is still designed that way but used for the user object now. Clean up: props, comments, useStates(), Link import in Profile.js. Pass user instead of isAdmin and refactor code accordingly to include user.isadmin. Change cItems to something more descriptive and make it a boolean that goes from false to true to false, etc.