Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused

Manav Rathie65ea1a8c514
diff --git a/web/apps/cast/src/pages/_app.tsx b/web/apps/cast/src/pages/_app.tsx
index d85ac05422..939f2a59da 100644
--- a/web/apps/cast/src/pages/_app.tsx
+++ b/web/apps/cast/src/pages/_app.tsx
@@ -1,7 +1,8 @@
import { CustomHead } from "@/next/components/Head";
import { disableDiskLogs } from "@/next/log";
import { logUnhandledErrorsAndRejections } from "@/next/log-web";
-import { APPS, APP_TITLES } from "@ente/shared/apps/constants";
+import { appTitle } from "@/next/types/app";
+import { APPS } from "@ente/shared/apps/constants";
import { getTheme } from "@ente/shared/themes";
import { THEME_COLOR } from "@ente/shared/themes/constants";
import { CssBaseline, ThemeProvider } from "@mui/material";
@@ -19,7 +20,7 @@ export default function App({ Component, pageProps }: AppProps) {
return (
<>
- <CustomHead title={APP_TITLES.get(APPS.PHOTOS)} />
+ <CustomHead title={appTitle["photos"]} />
<ThemeProvider theme={getTheme(THEME_COLOR.DARK, APPS.PHOTOS)}>
<CssBaseline enableColorScheme />
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 818ee0a501..bdb1a416e8 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -6,7 +6,7 @@ import {
logStartupBanner,
logUnhandledErrorsAndRejections,
} from "@/next/log-web";
-import type { AppName, BaseAppContextT } from "@/next/types/app";
+import { appTitle, type AppName, type BaseAppContextT } from "@/next/types/app";
import { AppUpdate } from "@/next/types/ipc";
import { ensure } from "@/utils/ensure";
import { APPS, CLIENT_PACKAGE_NAMES } from "@ente/shared/apps/constants";
diff --git a/web/packages/shared/apps/constants.ts b/web/packages/shared/apps/constants.ts
index 58bd3ae841..0f29710619 100644
--- a/web/packages/shared/apps/constants.ts
+++ b/web/packages/shared/apps/constants.ts
@@ -30,13 +30,6 @@ export const CLIENT_PACKAGE_NAMES = new Map([
export const clientPackageNamePhotosDesktop = "io.ente.photos.desktop";
-export const APP_TITLES = new Map([
- [APPS.ALBUMS, "Ente Albums"],
- [APPS.PHOTOS, "Ente Photos"],
- [APPS.AUTH, "Ente Auth"],
- [APPS.ACCOUNTS, "Ente Accounts"],
-]);
-
export const APP_HOMES = new Map([
[APPS.ALBUMS, "/"],
[APPS.PHOTOS, PHOTOS_PAGES.GALLERY],