Browse Source

removed console logs

Abhinav-grd 4 years ago
parent
commit
6b8fc327e1

+ 0 - 3
src/components/PhotoSwipe/PhotoSwipe.tsx

@@ -51,7 +51,6 @@ function PhotoSwipe(props: Iprops) {
     }, [isOpen]);
     }, [isOpen]);
 
 
     function updateFavButton() {
     function updateFavButton() {
-        console.log(this.currItem.id, props.favItemIds)
         setIsFav(isInFav(this?.currItem));
         setIsFav(isInFav(this?.currItem));
     }
     }
 
 
@@ -113,14 +112,12 @@ function PhotoSwipe(props: Iprops) {
         if (!isInFav(file)) {
         if (!isInFav(file)) {
             favItemIds.add(file.id);
             favItemIds.add(file.id);
             await addToFavorites(file);
             await addToFavorites(file);
-            console.log("added to Favorites");
             setIsFav(true);
             setIsFav(true);
             setFavItemIds(favItemIds);
             setFavItemIds(favItemIds);
         }
         }
         else {
         else {
             favItemIds.delete(file.id);
             favItemIds.delete(file.id);
             await removeFromFavorites(file)
             await removeFromFavorites(file)
-            console.log("removed from Favorites");
             setIsFav(false);
             setIsFav(false);
             setFavItemIds(favItemIds);
             setFavItemIds(favItemIds);
 
 

+ 0 - 1
src/services/uploadService.ts

@@ -364,7 +364,6 @@ class UploadService {
                     resolve(blob);
                     resolve(blob);
                 }), 'image/jpeg', 0.4
                 }), 'image/jpeg', 0.4
             });
             });
-            console.log(URL.createObjectURL(thumbnailBlob));
             const thumbnail = this.getUint8ArrayView(thumbnailBlob);
             const thumbnail = this.getUint8ArrayView(thumbnailBlob);
             return thumbnail;
             return thumbnail;
         } catch (e) {
         } catch (e) {

+ 0 - 1
src/utils/common/apiUtil.ts

@@ -1,5 +1,4 @@
 export const getEndpoint = () => {
 export const getEndpoint = () => {
     const endPoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT ?? "https://api.ente.io";
     const endPoint = process.env.NEXT_PUBLIC_ENTE_ENDPOINT ?? "https://api.ente.io";
-    console.log(endPoint);
     return endPoint;
     return endPoint;
 }
 }