Rename and move

This commit is contained in:
Manav Rathi
2024-10-03 15:44:16 +05:30
parent a273bbb577
commit f3ea391aa9
3 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ import { t } from "i18next";
import React, { useEffect, useState } from "react";
import { z } from "zod";
import { FocusVisibleButton } from "./FocusVisibleButton";
import { SlideTransition } from "./SlideTransition";
import { SlideUpTransition } from "./mui/SlideUpTransition";
interface DevSettingsProps {
/** If `true`, then the dialog is shown. */
@@ -44,7 +44,7 @@ export const DevSettings: React.FC<DevSettingsProps> = ({ open, onClose }) => {
<Dialog
{...{ open, fullScreen }}
onClose={handleDialogClose}
TransitionComponent={SlideTransition}
TransitionComponent={SlideUpTransition}
maxWidth="xs"
fullWidth
>

View File

@@ -15,7 +15,7 @@ import {
import React, { useEffect } from "react";
import { didShowWhatsNew } from "../services/changelog";
import { FocusVisibleButton } from "./FocusVisibleButton";
import { SlideTransition } from "./SlideTransition";
import { SlideUpTransition } from "./mui/SlideUpTransition";
interface WhatsNewProps {
/** If `true`, then the dialog is shown. */
@@ -38,7 +38,7 @@ export const WhatsNew: React.FC<WhatsNewProps> = ({ open, onClose }) => {
return (
<Dialog
{...{ open, fullScreen }}
TransitionComponent={SlideTransition}
TransitionComponent={SlideUpTransition}
maxWidth="xs"
fullWidth
>

View File

@@ -7,7 +7,7 @@ import React, { forwardRef } from "react";
* to a MUI {@link Dialog} to get it to use a slide transition (by default, the
* dialog does a fade transition).
*/
export const SlideTransition = forwardRef(function Transition(
export const SlideUpTransition = forwardRef(function Transition(
props: TransitionProps & { children: React.ReactElement },
ref: React.Ref<unknown>,
) {