Skip to content

armgit / ente

Public Imported from GitHub
0

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

Extract

Manav Rathi4e22fba056ed
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 72bb4cbfb7..9f66338712 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -999,16 +999,7 @@ const Page: React.FC = () => {
/>
)}
</NavbarBase>
- {isFirstLoad && (
- <CenteredRow>
- <Typography
- variant="small"
- sx={{ color: "text.muted" }}
- >
- {t("initial_load_delay_warning")}
- </Typography>
- </CenteredRow>
- )}
+ {isFirstLoad && <FirstLoadMessage />}
{isOffline && <OfflineMessage />}
<GalleryBarAndListHeader
@@ -1141,6 +1132,14 @@ const Page: React.FC = () => {
export default Page;
+const FirstLoadMessage: React.FC = () => (
+ <CenteredRow>
+ <Typography variant="small" sx={{ color: "text.muted" }}>
+ {t("initial_load_delay_warning")}
+ </Typography>
+ </CenteredRow>
+);
+
const OfflineMessage: React.FC = () => (
<Typography
variant="small"