diff --git a/web/packages/new/photos/components/WhatsNew.tsx b/web/packages/new/photos/components/WhatsNew.tsx index b074f8b231..2660e5ede8 100644 --- a/web/packages/new/photos/components/WhatsNew.tsx +++ b/web/packages/new/photos/components/WhatsNew.tsx @@ -10,18 +10,9 @@ import { useMediaQuery, } from "@mui/material"; import Slide from "@mui/material/Slide"; -import { TransitionProps } from "@mui/material/transitions"; +import type { TransitionProps } from "@mui/material/transitions"; import React from "react"; -const Transition = React.forwardRef(function Transition( - props: TransitionProps & { - children: React.ReactElement - }, - ref: React.Ref, -) { - return ; -}); - interface WhatsNewProps { /** Set this to `true` to show the dialog. */ open: boolean; @@ -39,8 +30,8 @@ export const WhatsNew: React.FC = ({ open, onClose }) => { return ( {"What's new"} @@ -68,6 +59,15 @@ export const WhatsNew: React.FC = ({ open, onClose }) => { ); }; +const SlideTransition = React.forwardRef(function Transition( + props: TransitionProps & { + children: React.ReactElement; + }, + ref: React.Ref, +) { + return ; +}); + const StyledUL = styled("ul")` padding-inline: 1rem; list-style-type: circle; diff --git a/web/packages/new/tsconfig.json b/web/packages/new/tsconfig.json index 912513dea5..954e092ba3 100644 --- a/web/packages/new/tsconfig.json +++ b/web/packages/new/tsconfig.json @@ -1,5 +1,9 @@ { "extends": "@/build-config/tsconfig-typecheck.json", + "compilerOptions": { + /* MUI doesn't play great with exactOptionalPropertyTypes currently. */ + "exactOptionalPropertyTypes": false + }, "include": [ ".", "../next/global-electron.d.ts",