update Names

This commit is contained in:
Abhinav 2023-03-25 19:14:50 +05:30
parent b79bd66fcd
commit 65a552ad57
2 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ const APP_TITLE = 'ente Photos';
// Client-side cache, shared for the whole session of the user in the browser.
const clientSideEmotionCache = createEmotionCache();
export interface MyAppProps extends AppProps {
export interface EnteAppProps extends AppProps {
emotionCache?: EmotionCache;
}

View file

@ -11,13 +11,13 @@ import Document, {
import createEmotionServer from '@emotion/server/create-instance';
import { AppType } from 'next/app';
import createEmotionCache from 'themes/createEmotionCache';
import { MyAppProps } from './_app';
import { EnteAppProps } from './_app';
interface MyDocumentProps extends DocumentProps {
interface EnteDocumentProps extends DocumentProps {
emotionStyleTags: JSX.Element[];
}
export default function MyDocument({ emotionStyleTags }: MyDocumentProps) {
export default function EnteDocument({ emotionStyleTags }: EnteDocumentProps) {
return (
<Html lang="en">
<Head>
@ -47,7 +47,7 @@ export default function MyDocument({ emotionStyleTags }: MyDocumentProps) {
// `getInitialProps` belongs to `_document` (instead of `_app`),
// it's compatible with static-site generation (SSG).
MyDocument.getInitialProps = async (ctx: DocumentContext) => {
EnteDocument.getInitialProps = async (ctx: DocumentContext) => {
// Resolution order
//
// On the server:
@ -82,7 +82,7 @@ MyDocument.getInitialProps = async (ctx: DocumentContext) => {
originalRenderPage({
enhanceApp: (
App: React.ComponentType<
React.ComponentProps<AppType> & MyAppProps
React.ComponentProps<AppType> & EnteAppProps
>
) =>
function EnhanceApp(props) {