π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refractor(SingleInputDialog):removed-zIndex-prop
Aswin Asok415776076c58
diff --git a/web/packages/base/components/SingleInputDialog.tsx b/web/packages/base/components/SingleInputDialog.tsxindex bc9d279f2b..9a1cf64b69 100644--- a/web/packages/base/components/SingleInputDialog.tsx+++ b/web/packages/base/components/SingleInputDialog.tsx@@ -1,4 +1,4 @@-import { Dialog, DialogContent, DialogTitle, useTheme } from "@mui/material";+import { Dialog, DialogContent, DialogTitle } from "@mui/material";import type { ModalVisibilityProps } from "ente-base/components/utils/modal";import React, { useCallback } from "react";import { SingleInputForm, type SingleInputFormProps } from "./SingleInputForm";@@ -7,8 +7,6 @@ type SingleInputDialogProps = ModalVisibilityProps &Omit<SingleInputFormProps, "onCancel"> & {/** Title of the dialog. */title: string;- /** Optional z-index override to layer above other dialogs. */- zIndex?: number;};/**@@ -25,12 +23,8 @@ export const SingleInputDialog: React.FC<SingleInputDialogProps> = ({onClose,onSubmit,title,- zIndex,...rest}) => {- const theme = useTheme();- const dialogZIndex = zIndex ?? theme.zIndex.modal + 4;-const handleSubmit: SingleInputFormProps["onSubmit"] = useCallback(async (value, setFieldError) => {await onSubmit(value, setFieldError);@@ -45,7 +39,6 @@ export const SingleInputDialog: React.FC<SingleInputDialogProps> = ({onClose={onClose}maxWidth="xs"fullWidth- sx={{ zIndex: dialogZIndex }}slotProps={{ paper: { sx: { p: "8px 4px 4px 4px" } } }}><DialogTitle>{title}</DialogTitle>