fix: use consistent react and node type versions

This commit is contained in:
httpjamesm 2023-12-28 15:56:26 -05:00
parent 34780049f6
commit 5003f30c9b
No known key found for this signature in database
4 changed files with 21 additions and 948 deletions

View file

@ -9,17 +9,9 @@
"lint": "next lint",
"export": "next export"
},
"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.0.4"
},
"dependencies": {},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.0.4"
"@types/node": "^14.6.4",
"@types/react": "^16.9.49"
}
}

View file

@ -20,13 +20,13 @@ import {
} from '@ente/shared/components/DialogBoxV2/types';
import DialogBoxV2 from '@ente/shared/components/DialogBoxV2';
export const AppContext = createContext(
{} as {
isMobile: boolean;
showNavBar: (show: boolean) => void;
setDialogBoxAttributesV2: SetDialogBoxAttributesV2;
}
);
interface AppContextProps {
isMobile: boolean;
showNavBar: (show: boolean) => void;
setDialogBoxAttributesV2: SetDialogBoxAttributesV2;
}
export const AppContext = createContext<AppContextProps>({} as AppContextProps);
// Client-side cache, shared for the whole session of the user in the browser.
const clientSideEmotionCache = createEmotionCache();

View file

@ -164,7 +164,7 @@ const PasskeysFlow = () => {
padding: '1rem',
}}>
<InfoIcon />
<Typography fontWeight="bold" variant="h4">
<Typography fontWeight="bold" variant="h1">
{t('PASSKEY_LOGIN_FAILED')}
</Typography>
<Typography marginTop="1rem">
@ -189,7 +189,7 @@ const PasskeysFlow = () => {
padding: '1rem',
}}>
<InfoIcon />
<Typography fontWeight="bold" variant="h4">
<Typography fontWeight="bold" variant="h1">
{t('PASSKEY_LOGIN_FAILED')}
</Typography>
<Typography marginTop="1rem">
@ -228,7 +228,7 @@ const PasskeysFlow = () => {
padding: '1rem',
}}>
<InfoIcon />
<Typography fontWeight="bold" variant="h4">
<Typography fontWeight="bold" variant="h1">
{t('LOGIN_WITH_PASSKEY')}
</Typography>
<Typography marginTop="1rem">

935
yarn.lock

File diff suppressed because it is too large Load diff