Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: theme type errs

httpjamesm20fb92c48efa
diff --git a/apps/accounts/src/pages/_app.tsx b/apps/accounts/src/pages/_app.tsx
index 07214a5c46..77b887d007 100644
--- a/apps/accounts/src/pages/_app.tsx
+++ b/apps/accounts/src/pages/_app.tsx
@@ -63,19 +63,26 @@ export default function App(props: EnteAppProps) {
const closeDialogBoxV2 = () => setDialogBoxV2View(false);
+ const theme = getTheme(themeColor, APPS.PHOTOS);
+
return (
<CacheProvider value={emotionCache}>
- <ThemeProvider theme={getTheme(themeColor, APPS.PHOTOS)}>
+ <ThemeProvider theme={theme}>
<CssBaseline enableColorScheme />
<DialogBoxV2
sx={{ zIndex: 1600 }}
open={dialogBoxV2View}
onClose={closeDialogBoxV2}
- attributes={dialogBoxAttributeV2}
+ attributes={dialogBoxAttributeV2 as any}
/>
<AppContext.Provider
- value={{ isMobile, showNavBar, setDialogBoxAttributesV2 }}>
+ value={{
+ isMobile,
+ showNavBar,
+ setDialogBoxAttributesV2:
+ setDialogBoxAttributesV2 as any,
+ }}>
{!isI18nReady && (
<Overlay
sx={(theme) => ({
@@ -83,7 +90,8 @@ export default function App(props: EnteAppProps) {
justifyContent: 'center',
alignItems: 'center',
zIndex: 2000,
- backgroundColor: theme.colors.background.base,
+ backgroundColor: (theme as any).colors
+ .background.base,
})}>
<EnteSpinner />
</Overlay>
diff --git a/apps/accounts/tsconfig.json b/apps/accounts/tsconfig.json
index eca1b3f562..d9092609dc 100644
--- a/apps/accounts/tsconfig.json
+++ b/apps/accounts/tsconfig.json
@@ -11,10 +11,7 @@
"noUnusedParameters": false,
"strictNullChecks": false,
"target": "es5",
- "useUnknownInCatchVariables": false,
- "paths": {
- "*": ["*"]
- }
+ "useUnknownInCatchVariables": false
},
"include": [
"next-env.d.ts",