Skip to content

armgit / ente

Public Imported from GitHub
0

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

Conv

Manav Rathie5dee1712756
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index 13532201ba..6f17ace58e 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -1897,7 +1897,7 @@ function PublicLinkSetPassword({
fullWidth
>
<Stack spacing={3} p={1.5}>
- <Typography variant="h3" px={1} py={0.5} fontWeight={"bold"}>
+ <Typography variant="h3" fontWeight={"bold"} px={1} py={0.5}>
{t("password_lock")}
</Typography>
<SingleInputForm
diff --git a/web/packages/accounts/components/RecoveryKey.tsx b/web/packages/accounts/components/RecoveryKey.tsx
index d0f1668ba3..3b26ff969c 100644
--- a/web/packages/accounts/components/RecoveryKey.tsx
+++ b/web/packages/accounts/components/RecoveryKey.tsx
@@ -1,19 +1,21 @@
import { type MiniDialogAttributes } from "@/base/components/MiniDialog";
+import { SpaceBetweenFlex } from "@/base/components/mui/Container";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import { errorDialogAttributes } from "@/base/components/utils/dialog";
import type { ModalVisibilityProps } from "@/base/components/utils/modal";
import { useIsSmallWidth } from "@/base/hooks";
import log from "@/base/log";
import { downloadString } from "@/base/utils/web";
+import { DialogCloseIconButton } from "@/new/photos/components/mui/Dialog";
import { ensure } from "@/utils/ensure";
import CodeBlock from "@ente/shared/components/CodeBlock";
-import DialogTitleWithCloseButton from "@ente/shared/components/TitleWithCloseButton";
import { getRecoveryKey } from "@ente/shared/crypto/helpers";
import {
Box,
Dialog,
DialogActions,
DialogContent,
+ DialogTitle,
Typography,
styled,
} from "@mui/material";
@@ -74,9 +76,13 @@ export const RecoveryKey: React.FC<RecoveryKeyProps> = ({
maxWidth="xs"
fullWidth
>
- <DialogTitleWithCloseButton onClose={onClose}>
- {t("recovery_key")}
- </DialogTitleWithCloseButton>
+ <SpaceBetweenFlex sx={{ p: "8px 4px 8px 0" }}>
+ <DialogTitle variant="h3" fontWeight={"bold"}>
+ {t("recovery_key")}
+ </DialogTitle>
+ <DialogCloseIconButton {...{ onClose }} />
+ </SpaceBetweenFlex>
+
<DialogContent>
<Typography mb={3}>{t("recovery_key_description")}</Typography>
<DashedBorderWrapper>