Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

add(gallery):temp-dummy-flag-for-switching

Aswin Asok755ef06abef0
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index cd95b0dd98..b9b3265db7 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -78,6 +78,7 @@ import {
} from "ente-new/photos/components/SelectedFileOptions";
import { WhatsNew } from "ente-new/photos/components/WhatsNew";
import {
+ GalleryEmptyState,
GalleryEmptyStateV2,
PeopleEmptyState,
SearchResultsHeader,
@@ -186,6 +187,8 @@ import { Trans } from "react-i18next";
* --------------------- |
* Photo List v
*/
+const galleryFeatureFlags: { v2: boolean } = { v2: true };
+
const Page: React.FC = () => {
const { logout, showMiniDialog, onGenericError } = useBaseContext();
const {
@@ -2199,10 +2202,17 @@ const Page: React.FC = () => {
!isFirstLoad &&
!state.collectionFiles.length &&
activeCollectionID === PseudoCollectionID.all ? (
- <GalleryEmptyStateV2
- isUploadInProgress={uploadManager.isUploadInProgress()}
- onUpload={openUploader}
- />
+ galleryFeatureFlags.v2 ? (
+ <GalleryEmptyStateV2
+ isUploadInProgress={uploadManager.isUploadInProgress()}
+ onUpload={openUploader}
+ />
+ ) : (
+ <GalleryEmptyState
+ isUploadInProgress={uploadManager.isUploadInProgress()}
+ onUpload={openUploader}
+ />
+ )
) : !isInSearchMode &&
!isFirstLoad &&
state.view?.type == "people" &&