Git Product home page Git Product logo

my-biblioteka's Introduction

Personal Library Manager

my-biblioteka's People

Contributors

eliasbnk avatar

Watchers

 avatar

my-biblioteka's Issues

#NEED HELP

@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;
        }, [])}
    </>
  );
};

The Error:
Screen Shot 2021-06-02 at 1 02 05 AM

add a complete counter

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.

add multi user support

somehow do

  • sign up page for anyone
  • and on sign up, a new collection will be created and dedicated to that user

add input searcher for new books author

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.