From 5d40145e795514cc97868c29c3fa9fa5f1ae1e0b Mon Sep 17 00:00:00 2001 From: AlexisG Date: Wed, 27 Nov 2024 13:02:01 +0100 Subject: [PATCH] fix: Revert "refactor: Rename FabWithMenuContext" This reverts commit 66291048339cd2cb2206e2ee44e684289d7240d2. --- .../{FabWithAddMenuContext.jsx => FabWithMenuContext.jsx} | 4 ++-- src/modules/views/Drive/DriveFolderView.jsx | 4 ++-- src/modules/views/Public/PublicFolderView.jsx | 8 ++------ 3 files changed, 6 insertions(+), 10 deletions(-) rename src/modules/drive/{FabWithAddMenuContext.jsx => FabWithMenuContext.jsx} (91%) diff --git a/src/modules/drive/FabWithAddMenuContext.jsx b/src/modules/drive/FabWithMenuContext.jsx similarity index 91% rename from src/modules/drive/FabWithAddMenuContext.jsx rename to src/modules/drive/FabWithMenuContext.jsx index 6faca30e9c..c422e91ff4 100644 --- a/src/modules/drive/FabWithAddMenuContext.jsx +++ b/src/modules/drive/FabWithMenuContext.jsx @@ -7,7 +7,7 @@ import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import { AddMenuContext } from 'modules/drive/AddMenu/AddMenuProvider' import { useFabStyles } from 'modules/drive/helpers' -const FabWithAddMenuContext = ({ noSidebar }) => { +const FabWithMenuContext = ({ noSidebar }) => { const { t } = useI18n() const { @@ -42,4 +42,4 @@ const FabWithAddMenuContext = ({ noSidebar }) => { ) } -export default React.memo(FabWithAddMenuContext) +export default React.memo(FabWithMenuContext) diff --git a/src/modules/views/Drive/DriveFolderView.jsx b/src/modules/views/Drive/DriveFolderView.jsx index df67d40ad3..71d8a896fb 100644 --- a/src/modules/views/Drive/DriveFolderView.jsx +++ b/src/modules/views/Drive/DriveFolderView.jsx @@ -33,7 +33,7 @@ import { removeFromFavorites } from 'modules/actions/components/removeFromFavori import { makeExtraColumnsNamesFromMedia } from 'modules/certifications' import { useExtraColumns } from 'modules/certifications/useExtraColumns' import AddMenuProvider from 'modules/drive/AddMenu/AddMenuProvider' -import FabWithAddMenuContext from 'modules/drive/FabWithAddMenuContext' +import FabWithMenuContext from 'modules/drive/FabWithMenuContext' import Toolbar from 'modules/drive/Toolbar' import { useFolderSort } from 'modules/navigation/duck' import { useSelectionContext } from 'modules/selection/SelectionProvider' @@ -241,7 +241,7 @@ const DriveFolderView = () => { displayedFolder={displayedFolder} isSelectionBarVisible={isSelectionBarVisible} > - + )} diff --git a/src/modules/views/Public/PublicFolderView.jsx b/src/modules/views/Public/PublicFolderView.jsx index 6adf02a6bd..cae7b444b1 100644 --- a/src/modules/views/Public/PublicFolderView.jsx +++ b/src/modules/views/Public/PublicFolderView.jsx @@ -36,7 +36,7 @@ import { download, trash, rename, versions } from 'modules/actions' import { makeExtraColumnsNamesFromMedia } from 'modules/certifications' import { useExtraColumns } from 'modules/certifications/useExtraColumns' import AddMenuProvider from 'modules/drive/AddMenu/AddMenuProvider' -import FabWithAddMenuContext from 'modules/drive/FabWithAddMenuContext' +import FabWithMenuContext from 'modules/drive/FabWithMenuContext' import Main from 'modules/layout/Main' import PublicToolbar from 'modules/public/PublicToolbar' import { useSelectionContext } from 'modules/selection/SelectionProvider' @@ -158,10 +158,6 @@ const PublicFolderView = () => { // Check if the sharing shortcut has already been created (but not synced) const isShareAlreadyAdded = sharingInfos?.isSharingShortcutCreated - console.log('==========') - console.log('isFabDisplayed : ', isFabDisplayed) - console.log('==========') - return (
@@ -213,7 +209,7 @@ const PublicFolderView = () => { displayedFolder={displayedFolder} isSelectionBarVisible={isSelectionBarVisible} > - + )}