Removed console.logs
This commit is contained in:
parent
4266e2a557
commit
3677abb2a7
@ -1,6 +1,6 @@
|
||||
{
|
||||
"scripts": {
|
||||
"dev": "SNOWPACK_PUBLIC_API_URL=https://publitebackend.dmitriy.icu SNOWPACK_PUBLIC_BASE_URL=http://localhost:8080 snowpack dev",
|
||||
"dev": "SNOWPACK_PUBLIC_API_URL=http://localhost:5000 SNOWPACK_PUBLIC_BASE_URL=http://localhost:8080 snowpack dev",
|
||||
"build": "snowpack build",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
@ -38,9 +38,5 @@ export const useLibrary = (): UseLibraryReturnTuple => {
|
||||
|
||||
useEffect(() => updateHashList(hashList), [hashList]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log(library);
|
||||
}, [library]);
|
||||
|
||||
return [library, addBook, hashList];
|
||||
};
|
||||
|
@ -78,8 +78,6 @@ export const usePagination = (
|
||||
|
||||
setPages(pages);
|
||||
setCurrentPage(0);
|
||||
console.log(pages);
|
||||
console.log("end");
|
||||
};
|
||||
|
||||
const findPage = (
|
||||
@ -208,7 +206,6 @@ export const usePagination = (
|
||||
};
|
||||
|
||||
const displayPage = (pageNum: number, page: HTMLElement) => {
|
||||
console.log(pageNum, pages.length);
|
||||
if (pageNum >= 0 && pageNum < pages.length - 1) {
|
||||
setCurrentPage(pageNum);
|
||||
const startPosition = pages[pageNum];
|
||||
|
@ -22,8 +22,6 @@ export const UploadForm = () => {
|
||||
const res = await submitFile(file);
|
||||
setLoading(false);
|
||||
|
||||
console.log(validateResponse(res));
|
||||
|
||||
if (validateResponse(res)) {
|
||||
saveBook(res);
|
||||
setLocation("/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user