From a273bbb57793cc39644d02e5ec3148bd2ca0d0e6 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 3 Oct 2024 15:42:48 +0530 Subject: [PATCH] Tweak --- .../new/photos/components/SlideTransition.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web/packages/new/photos/components/SlideTransition.tsx b/web/packages/new/photos/components/SlideTransition.tsx index d5d2fda5c0..691c151ff3 100644 --- a/web/packages/new/photos/components/SlideTransition.tsx +++ b/web/packages/new/photos/components/SlideTransition.tsx @@ -1,15 +1,14 @@ import Slide from "@mui/material/Slide"; import type { TransitionProps } from "@mui/material/transitions"; -import React from "react"; +import React, { forwardRef } from "react"; /** - * A React component that can be passed as the `TransitionComponent` props to a - * MUI {@link Dialog} to get it to use a slide transition (default is fade). + * A React component that can be passed as the {@link TransitionComponent} prop + * to a MUI {@link Dialog} to get it to use a slide transition (by default, the + * dialog does a fade transition). */ -export const SlideTransition = React.forwardRef(function Transition( - props: TransitionProps & { - children: React.ReactElement; - }, +export const SlideTransition = forwardRef(function Transition( + props: TransitionProps & { children: React.ReactElement }, ref: React.Ref, ) { return ;