π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
ex
Manav Rathid41e177b3c0c
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsxindex cfe9e085eb..3a08e826cb 100644--- a/web/apps/photos/src/components/Sidebar.tsx+++ b/web/apps/photos/src/components/Sidebar.tsx@@ -140,6 +140,10 @@ type SidebarProps = ModalVisibilityProps & {* Called when the plan selection modal should be shown.*/onShowPlanSelector: () => void;+ /**+ * Called when the export dialog should be shown.+ */+ onShowExport: () => void;};export const Sidebar: React.FC<SidebarProps> = ({@@ -147,6 +151,7 @@ export const Sidebar: React.FC<SidebarProps> = ({onClose,collectionSummaries,onShowPlanSelector,+ onShowExport,}) => (<RootSidebarDrawer open={open} onClose={onClose}><HeaderSection onCloseSidebar={onClose} />@@ -157,7 +162,7 @@ export const Sidebar: React.FC<SidebarProps> = ({collectionSummaries={collectionSummaries}/><UtilitySection onCloseSidebar={onClose} />- <HelpSection onCloseSidebar={onClose} />+ <HelpSection onCloseSidebar={onClose} {...{ onShowExport }} /><Divider sx={{ my: "2px" }} /><ExitSection /><InfoSection />@@ -565,15 +570,19 @@ const UtilitySection: React.FC<SectionProps> = ({ onCloseSidebar }) => {);};-const HelpSection: React.FC<SectionProps> = ({ onCloseSidebar }) => {+type HelpSectionProps = SectionProps & Pick<SidebarProps, "onShowExport">;++const HelpSection: React.FC<HelpSectionProps> = ({+ onCloseSidebar,+ onShowExport,+}) => {const { showMiniDialog } = useBaseContext();- const { openExportModal } = useContext(GalleryContext);const { show: showHelp, props: helpVisibilityProps } = useModalVisibility();const handleExport = () =>isDesktop- ? openExportModal()+ ? onShowExport(): showMiniDialog(downloadAppDialogAttributes());return (diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsxindex 7b5010fcc3..1d0b1966e3 100644--- a/web/apps/photos/src/pages/gallery.tsx+++ b/web/apps/photos/src/pages/gallery.tsx@@ -999,6 +999,7 @@ const Page: React.FC = () => {{...sidebarVisibilityProps}{...{ collectionSummaries }}onShowPlanSelector={showPlanSelector}+ onShowExport={showExport}/><WhatsNew {...whatsNewVisibilityProps} />{!isInSearchMode &&