revert to setting title in _app.tsx next issue

This commit is contained in:
Abhinav 2022-02-05 16:20:03 +05:30
parent ba54a48bd9
commit 10b5f6cd47
3 changed files with 5 additions and 1 deletions

View file

@ -13,6 +13,7 @@ import { getEndpoint } from 'utils/common/apiUtil';
import { getData, LS_KEYS } from 'utils/storage/localStorage'; import { getData, LS_KEYS } from 'utils/storage/localStorage';
import HTTPService from 'services/HTTPService'; import HTTPService from 'services/HTTPService';
import FlashMessageBar from 'components/FlashMessageBar'; import FlashMessageBar from 'components/FlashMessageBar';
import Head from 'next/head';
import { getAlbumSiteHost } from 'constants/pages'; import { getAlbumSiteHost } from 'constants/pages';
import GoToEnte from 'components/pages/sharedAlbum/GoToEnte'; import GoToEnte from 'components/pages/sharedAlbum/GoToEnte';
@ -656,6 +657,9 @@ export default function App({ Component, err }) {
return ( return (
<> <>
<Head>
<title>{constants.TITLE}</title>
</Head>
<GlobalStyles /> <GlobalStyles />
{showNavbar && ( {showNavbar && (
<Navbar> <Navbar>

View file

@ -33,7 +33,6 @@ export default class MyDocument extends Document {
return ( return (
<Html lang="en"> <Html lang="en">
<Head> <Head>
<title>ente.io | encrypted photo storage</title>
<link <link
rel="icon" rel="icon"
href="/images/favicon.png" href="/images/favicon.png"

View file

@ -135,6 +135,7 @@ const englishConstants = {
NEXT: 'next (arrow right)', NEXT: 'next (arrow right)',
NO_INTERNET_CONNECTION: NO_INTERNET_CONNECTION:
'please check your internet connection and try again', 'please check your internet connection and try again',
TITLE: 'ente.io | encrypted photo storage',
UPLOAD_FIRST_PHOTO_DESCRIPTION: 'preserve your first memory with ente', UPLOAD_FIRST_PHOTO_DESCRIPTION: 'preserve your first memory with ente',
UPLOAD_FIRST_PHOTO: 'preserve', UPLOAD_FIRST_PHOTO: 'preserve',
UPLOAD_DROPZONE_MESSAGE: 'drop to backup your files', UPLOAD_DROPZONE_MESSAGE: 'drop to backup your files',