Move to gallery
Doesn't make much sense to show it to logged out users
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { WhatsNew } from "@/new/photos/components/WhatsNew";
|
||||
import { CustomHead } from "@/next/components/Head";
|
||||
import { setAppNameForAuthenticatedRequests } from "@/next/http";
|
||||
import { setupI18n } from "@/next/i18n";
|
||||
@@ -130,10 +129,6 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
>();
|
||||
useState<DialogBoxAttributes>(null);
|
||||
const [messageDialogView, setMessageDialogView] = useState(false);
|
||||
// TODO(MR): This is never true currently, this is the WIP ability to show
|
||||
// what's new dialog on desktop app updates. The UI is done, need to hook
|
||||
// this up to logic to trigger it.
|
||||
const [openWhatsNew, setOpenWhatsNew] = useState(false);
|
||||
const [dialogBoxV2View, setDialogBoxV2View] = useState(false);
|
||||
const [watchFolderView, setWatchFolderView] = useState(false);
|
||||
const [watchFolderFiles, setWatchFolderFiles] = useState<FileList>(null);
|
||||
@@ -407,11 +402,6 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
attributes={dialogBoxAttributeV2}
|
||||
/>
|
||||
|
||||
<WhatsNew
|
||||
open={openWhatsNew}
|
||||
onClose={() => setOpenWhatsNew(false)}
|
||||
/>
|
||||
|
||||
<Notification
|
||||
open={notificationView}
|
||||
onClose={closeNotification}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { WhatsNew } from "@/new/photos/components/WhatsNew";
|
||||
import { fetchAndSaveFeatureFlagsIfNeeded } from "@/new/photos/services/feature-flags";
|
||||
import log from "@/next/log";
|
||||
import { CenteredFlex } from "@ente/shared/components/Container";
|
||||
@@ -193,6 +194,10 @@ export default function Gallery() {
|
||||
const [search, setSearch] = useState<Search>(null);
|
||||
const [shouldDisableDropzone, setShouldDisableDropzone] = useState(false);
|
||||
const [isPhotoSwipeOpen, setIsPhotoSwipeOpen] = useState(false);
|
||||
// TODO(MR): This is never true currently, this is the WIP ability to show
|
||||
// what's new dialog on desktop app updates. The UI is done, need to hook
|
||||
// this up to logic to trigger it.
|
||||
const [openWhatsNew, setOpenWhatsNew] = useState(false);
|
||||
|
||||
const {
|
||||
// A function to call to get the props we should apply to the container,
|
||||
@@ -1154,6 +1159,10 @@ export default function Gallery() {
|
||||
sidebarView={sidebarView}
|
||||
closeSidebar={closeSidebar}
|
||||
/>
|
||||
<WhatsNew
|
||||
open={openWhatsNew}
|
||||
onClose={() => setOpenWhatsNew(false)}
|
||||
/>
|
||||
{!isInSearchMode &&
|
||||
!isFirstLoad &&
|
||||
!files?.length &&
|
||||
|
||||
Reference in New Issue
Block a user