diff --git a/package.json b/package.json index 01c72bd..095d3e7 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/hooks/useLibrary.ts b/src/hooks/useLibrary.ts index ca295f5..81cb19a 100644 --- a/src/hooks/useLibrary.ts +++ b/src/hooks/useLibrary.ts @@ -38,9 +38,5 @@ export const useLibrary = (): UseLibraryReturnTuple => { useEffect(() => updateHashList(hashList), [hashList]); - useEffect(() => { - console.log(library); - }, [library]); - return [library, addBook, hashList]; }; diff --git a/src/hooks/usePagination.ts b/src/hooks/usePagination.ts index 031726c..2000971 100644 --- a/src/hooks/usePagination.ts +++ b/src/hooks/usePagination.ts @@ -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]; diff --git a/src/pages/UploadForm/index.tsx b/src/pages/UploadForm/index.tsx index 824211a..659c271 100644 --- a/src/pages/UploadForm/index.tsx +++ b/src/pages/UploadForm/index.tsx @@ -22,8 +22,6 @@ export const UploadForm = () => { const res = await submitFile(file); setLoading(false); - console.log(validateResponse(res)); - if (validateResponse(res)) { saveBook(res); setLocation("/");