π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Scaffold
Manav Rathi82fbbd427e76
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsxindex 003165816c..0373515b4c 100644--- a/web/apps/photos/src/pages/_app.tsx+++ b/web/apps/photos/src/pages/_app.tsx@@ -129,7 +129,6 @@ export default function App({ Component, pageProps }: AppProps) {>();useState<DialogBoxAttributes>(null);const [messageDialogView, setMessageDialogView] = useState(false);- // eslint-disable-next-line @typescript-eslint/no-unused-varsconst [shouldShowWhatsNew, setShouldShowWhatsNew] = useState(true);const [dialogBoxV2View, setDialogBoxV2View] = useState(false);const [watchFolderView, setWatchFolderView] = useState(false);@@ -388,7 +387,9 @@ export default function App({ Component, pageProps }: AppProps) {onClose={closeDialogBoxV2}attributes={dialogBoxAttributeV2}/>- {shouldShowWhatsNew && <WhatsNew />}+ {shouldShowWhatsNew && (+ <WhatsNew close={() => setShouldShowWhatsNew(false)} />+ )}<Notificationopen={notificationView}onClose={closeNotification}diff --git a/web/packages/new/photos/components/WhatsNew.tsx b/web/packages/new/photos/components/WhatsNew.tsxindex 5432af37ac..c2d8ef702c 100644--- a/web/packages/new/photos/components/WhatsNew.tsx+++ b/web/packages/new/photos/components/WhatsNew.tsx@@ -1,12 +1,23 @@import { Dialog, styled, useMediaQuery } from "@mui/material";import React from "react";-export const WhatsNew: React.FC = () => {+interface WhatsNewProps {+ /** Invoked by the component when it wants to get closed. */+ close: () => void;+}++/**+ * Show a dialog showing a short summary of interesting-for-the-user things in+ * this release of the desktop app.+ */+export const WhatsNew: React.FC<WhatsNewProps> = ({ close }) => {const fullScreen = useMediaQuery("(max-width:428px)");return (<Dialog open={true} fullScreen={fullScreen}>- <Contents>Hello</Contents>+ <Contents>+ <button onClick={close}>Hello</button>+ </Contents></Dialog>);};