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.
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.