Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web][photos] Match Export callback naming to sidebar drawers

Aswin Asokea662cc9ec94
diff --git a/web/apps/photos/src/components/sidebar/Sidebar.tsx b/web/apps/photos/src/components/sidebar/Sidebar.tsx
index 4f7131208a..5f1b694d66 100644
--- a/web/apps/photos/src/components/sidebar/Sidebar.tsx
+++ b/web/apps/photos/src/components/sidebar/Sidebar.tsx
@@ -258,7 +258,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
<UtilitySection
onCloseSidebar={onClose}
{...{
- onShowExport: handleShowExport,
+ showExport: handleShowExport,
onAuthenticateUser,
onShowPlanSelector,
showAccount,
@@ -582,7 +582,7 @@ const ShortcutSection: React.FC<ShortcutSectionProps> = ({
type UtilitySectionProps = SectionProps &
Pick<SidebarProps, "onAuthenticateUser" | "onShowPlanSelector"> & {
- onShowExport: () => void;
+ showExport: () => void;
showAccount: () => void;
accountVisibilityProps: ModalVisibilityProps;
showReferrals: () => void;
@@ -608,7 +608,7 @@ type UtilitySectionProps = SectionProps &
const UtilitySection: React.FC<UtilitySectionProps> = ({
onCloseSidebar,
- onShowExport,
+ showExport,
onAuthenticateUser,
onShowPlanSelector,
showAccount,
@@ -675,7 +675,7 @@ const UtilitySection: React.FC<UtilitySectionProps> = ({
<RowButtonEndActivityIndicator />
)
}
- onClick={onShowExport}
+ onClick={showExport}
/>
<Help
{...helpVisibilityProps}