-
Notifications
You must be signed in to change notification settings - Fork 1
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
Updated data home page and dahsboard #170
Conversation
AndriusIsin
commented
Dec 3, 2023
- dashboard use the new state lambda for both admin and user#163
- use actual data in userhub home page #162
console.log("allalal", videoInfo); | ||
console.log("URL", URL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll delete all of them
const handleMenuClick = (state) => { | ||
if (userRole) { | ||
setVideoState(state); | ||
setUpdateData((updateData) => updateData + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is updateData state used for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This edit button’s state can be used on different pages to update data from the database. It fetches data from the database when changes are made.