Skip to content

armgit / ente

Public Imported from GitHub
0

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

refactor(photos):correct-navigation-shell-name

Aswin Asok61795328b69f
diff --git a/web/apps/photos/src/components/gallery/PhotosNavigationSheel.tsx b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
similarity index 97%
rename from web/apps/photos/src/components/gallery/PhotosNavigationSheel.tsx
rename to web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
index b5e6f5a420..546027715c 100644
--- a/web/apps/photos/src/components/gallery/PhotosNavigationSheel.tsx
+++ b/web/apps/photos/src/components/gallery/PhotosNavigationShell.tsx
@@ -15,15 +15,15 @@ import { ut } from "ente-base/i18n";
import { t } from "i18next";
import type { ReactNode } from "react";
-type PhotosNavigationSheelProps = SearchBarProps & {
+type PhotosNavigationShellProps = SearchBarProps & {
onSidebar: () => void;
onUpload: () => void;
onHome: () => void;
};
-export const PhotosNavigationSheel: React.FC<
+export const PhotosNavigationShell: React.FC<
React.PropsWithChildren<
- PhotosNavigationSheelProps & {
+ PhotosNavigationShellProps & {
showRail: boolean;
showNormalNavigation: boolean;
hasSelection: boolean;
@@ -119,7 +119,7 @@ export const PhotosNavigationSheel: React.FC<
);
};
-const NormalHeaderContents: React.FC<PhotosNavigationSheelProps> = ({
+const NormalHeaderContents: React.FC<PhotosNavigationShellProps> = ({
onSidebar,
onUpload,
onHome,
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 7db719aa72..6803d4a740 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -38,9 +38,9 @@ import {
import { DuplicatesView } from "@/components/gallery/DuplicatesView";
import { LargeFilesView } from "@/components/gallery/LargeFilesView";
import {
- PhotosNavigationSheel,
+ PhotosNavigationShell,
UploadButton,
-} from "@/components/gallery/PhotosNavigationSheel";
+} from "@/components/gallery/PhotosNavigationShell";
import { TrashFilesDialog } from "@/components/gallery/TrashFilesDialog";
import {
findCollectionCreatingIfNeeded,
@@ -1986,7 +1986,7 @@ const Page: React.FC = () => {
{...trashFilesDialog}
/>
)}
- <PhotosNavigationSheel
+ <PhotosNavigationShell
showRail={!isCleanupViewOpen}
showNormalNavigation={showNormalNavigation}
hasSelection={showSelectionBar}
@@ -2187,7 +2187,7 @@ const Page: React.FC = () => {
}
/>
)}
- </PhotosNavigationSheel>
+ </PhotosNavigationShell>
<Upload
{...{
user,