Skip to content

armgit / ente

Public Imported from GitHub
0

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

Use t

Manav Rathi051ea691af24
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 61f3bbfbcf..15e41dfc02 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -187,7 +187,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
<Notification {...notificationProps} />
- {isDesktop && <WindowTitlebar />}
+ {isDesktop && <WindowTitlebar>{title}</WindowTitlebar>}
<AppContext.Provider value={appContext}>
{!isI18nReady ? (
<LoadingOverlay />
@@ -219,12 +219,10 @@ const WindowTitlebarArea = styled(CenteredFlex)`
app-region: drag;
`;
-const WindowTitlebar: React.FC = () => {
- return (
- <WindowTitlebarArea>
- <Typography variant="small" sx={{ mt: "2px", fontWeight: "bold" }}>
- Ente Photos
- </Typography>
- </WindowTitlebarArea>
- );
-};
+const WindowTitlebar: React.FC<React.PropsWithChildren> = ({ children }) => (
+ <WindowTitlebarArea>
+ <Typography variant="small" sx={{ mt: "2px", fontWeight: "bold" }}>
+ {children}
+ </Typography>
+ </WindowTitlebarArea>
+);