-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
ITPJ25LDN | Eyuel Abraham | Data-flows book library | week 2 #162
base: main
Are you sure you want to change the base?
Conversation
Added a title to the page.
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.
I made a few comments, please refer to them. apart from that everything seems to be okay, keep up the good work.
let book = new Book(title.value, title.value, pages.value, check.checked); | ||
library.push(book); | ||
let book = new Book(title.value, author.value, pages.value, check.checked); | ||
myLibrary.push(book); | ||
render(); | ||
} |
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.
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.
I have fixed the issue, thank you for the review.
@@ -77,9 +78,9 @@ function render() { | |||
wasReadCell.appendChild(changeBut); | |||
let readStatus = ""; | |||
if (myLibrary[i].check == false) { | |||
readStatus = "Yes"; | |||
readStatus = "NO"; |
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.
If you don't read a book, color of button shouldn't be green, maybe we should change to something else in order to increase user experience.
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.
I have added a RED background colour when readStatus = "NO";
…ed to the button when "read status " is "NO".
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Fixed the issues mentioned in the readme file.
Questions
Ask any questions you have for your reviewer.