Personal Library Manager
eliasbnk / my-biblioteka Goto Github PK
View Code? Open in Web Editor NEWPersonal Library Manager
Home Page: https://my-biblioteka.web.app/
Personal Library Manager
Home Page: https://my-biblioteka.web.app/
Personal Library Manager
@jacobvr IDK what this means?
I know that these 2 lines are causing the trouble:
let bookCount = filteredElements.length + 1;
handleNotStartedBookCount(bookCount);
in this code:
export const NotStartedBooks = ({ booksList, editBookStatus, addNewBook }) => {
const { query, handleNotStartedBookCount } = useBooksContext();
if (booksList === undefined) return <AddNewBook />;
return (
<>
<div style={{ marginTop: 200 }} />
<div>
<AddNewBook addNewBook={addNewBook} />
</div>
{booksList
.filter((book) => book.status === 'not started')
.reduce((filteredElements, curr) => {
if (
curr.title.toLowerCase().includes(query) ||
curr.author.toLowerCase().includes(query)
) {
let bookCount = filteredElements.length + 1;
handleNotStartedBookCount(bookCount);
return filteredElements.concat([
<div
key={`books-to-read-page-${curr?.id}`}
style={{ marginTop: 25, paddingBottom: 15 }}
>
<Book
book={curr}
editBookStatus={editBookStatus}
buttonActionOne={'reading'}
buttonActionTwo={'completed'}
/>
</div>,
]);
}
return filteredElements;
}, [])}
</>
);
};
on completed it will push new number to readCount, so that you can keep track how many times you re-read/re-listened to a specific book.
somehow do
a lot of books have the same author and it's a pain to rewrite the author's name, turn the Authour form field into an input search with a dropdown, and if the author isn't present it will add the new author.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.