Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
update Names
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavkgrd committed Mar 25, 2023
1 parent b79bd66 commit 65a552a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
10 changes: 5 additions & 5 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 65a552a

Please sign in to comment.