diff --git a/src/components/google-drive/Dashboard.tsx b/src/components/google-drive/Dashboard.tsx index 956bbd6..4131164 100644 --- a/src/components/google-drive/Dashboard.tsx +++ b/src/components/google-drive/Dashboard.tsx @@ -20,7 +20,6 @@ function Dashboard() { useProvideContext(); const [windowSize, setWindowSize] = useState(getWindowSize()); - console.log(folderId); useEffect(() => { if (folderId === undefined) setCurrentPage('dashboard'); @@ -106,7 +105,7 @@ function Dashboard() {

Files

- +

diff --git a/src/components/google-drive/DeleteFile.tsx b/src/components/google-drive/DeleteFile.tsx index 3f913f1..aec15e7 100644 --- a/src/components/google-drive/DeleteFile.tsx +++ b/src/components/google-drive/DeleteFile.tsx @@ -40,7 +40,6 @@ function DeleteFile({ fileId, fileName, userId, fileFolderId }: PropType) { folder === ROOT_FOLDER ? `files/${userId}${folder.path.join('/')}/${fileName}` : `files/${userId}/${folder.path.join('/')}/${folder.name}/${fileName}`; - console.log(filePath); const storageRef = storage.ref(); const fileRef = storageRef.child(filePath); @@ -48,12 +47,11 @@ function DeleteFile({ fileId, fileName, userId, fileFolderId }: PropType) { fileRef .delete() .then(() => { - console.log('File deleted successfully in storage'); database.files .doc(fileId) .delete() .then(() => { - console.log('Successfully deleted in database!'); + console.log('Successfully deleted in database'); }) .catch(() => showError()); }) diff --git a/src/components/google-drive/DeleteFolder.tsx b/src/components/google-drive/DeleteFolder.tsx index 8c82eb6..08f9134 100644 --- a/src/components/google-drive/DeleteFolder.tsx +++ b/src/components/google-drive/DeleteFolder.tsx @@ -29,7 +29,6 @@ function DeleteFolder({ folderId }: { folderId: string }) { closeModal(); if (childFolders.length > 0 || childFiles.length > 0) { - console.log('not safe to delete'); showError(); return; } @@ -78,7 +77,7 @@ function DeleteFolder({ folderId }: { folderId: string }) { >
File Icon -
{' '} + diff --git a/src/components/google-drive/FavoriteFile.tsx b/src/components/google-drive/FavoriteFile.tsx index 9e92af8..aa47119 100644 --- a/src/components/google-drive/FavoriteFile.tsx +++ b/src/components/google-drive/FavoriteFile.tsx @@ -3,18 +3,10 @@ import { database } from '../../firebase'; function FavoriteFile({ file }: any) { function favoriteFile() { - database.files - .doc(file.id) - .update({ - createdAt: database.getCurrentTimeStamps(), - isFavorite: !file.isFavorite, - }) - .then(() => { - console.log('file favorite updated'); - }) - .catch(() => { - console.log('failed to change favorite'); - }); + database.files.doc(file.id).update({ + createdAt: database.getCurrentTimeStamps(), + isFavorite: !file.isFavorite, + }); } return ( diff --git a/src/components/google-drive/FavoriteFolder.tsx b/src/components/google-drive/FavoriteFolder.tsx index 18d6ca3..26f7cb3 100644 --- a/src/components/google-drive/FavoriteFolder.tsx +++ b/src/components/google-drive/FavoriteFolder.tsx @@ -3,18 +3,10 @@ import { database } from '../../firebase'; function FavoriteFolder({ folder }: any) { function favoriteFile() { - database.folders - .doc(folder.id) - .update({ - createdAt: database.getCurrentTimeStamps(), - isFavorite: !folder.isFavorite, - }) - .then(() => { - console.log('Folder favorite updated'); - }) - .catch(() => { - console.log('failed to change favorite of folder'); - }); + database.folders.doc(folder.id).update({ + createdAt: database.getCurrentTimeStamps(), + isFavorite: !folder.isFavorite, + }); } return ( diff --git a/src/components/google-drive/Sidebar.tsx b/src/components/google-drive/Sidebar.tsx index 7b0add6..dcc70c7 100644 --- a/src/components/google-drive/Sidebar.tsx +++ b/src/components/google-drive/Sidebar.tsx @@ -26,8 +26,6 @@ function Sidebar({ windowWidth }: { windowWidth: number }) { return { innerWidth, innerHeight }; } - console.log(windowSize.innerWidth); - const stylesSidebar = { minWidth: windowSize.innerWidth < 1300 @@ -55,8 +53,6 @@ function Sidebar({ windowWidth }: { windowWidth: number }) { }; function setStylesFont(page: string) { - console.log(currentPage); - console.log(page === currentPage); if (page === currentPage) { return { color: '#e8e8e8',