Skip to content

armgit / ente

Public Imported from GitHub
0

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

Uncustom

Manav Rathi0498c70bade0
diff --git a/web/packages/new/photos/components/Gallery/index.tsx b/web/packages/new/photos/components/Gallery/index.tsx
index abecac66ad..325c65bacf 100644
--- a/web/packages/new/photos/components/Gallery/index.tsx
+++ b/web/packages/new/photos/components/Gallery/index.tsx
@@ -123,9 +123,9 @@ export const PersonListHeader: React.FC<PeopleListHeaderProps> = ({
open={openAddNameInput}
onClose={() => setOpenAddNameInput(false)}
title={pt("Add person")}
- placeholder={"ENTER_NAME"}
+ placeholder={t("ENTER_NAME") /* TODO-Cluster */}
initialValue={""}
- submitButtonTitle={"Add"}
+ submitButtonTitle={t("ADD")}
onSubmit={addPersonWithName}
/>
</GalleryItemsHeaderAdapter>
diff --git a/web/packages/new/photos/components/NameInputDialog.tsx b/web/packages/new/photos/components/NameInputDialog.tsx
index de7c5b99d3..0c46346c30 100644
--- a/web/packages/new/photos/components/NameInputDialog.tsx
+++ b/web/packages/new/photos/components/NameInputDialog.tsx
@@ -1,8 +1,8 @@
import log from "@/base/log";
-import DialogBoxV2 from "@ente/shared/components/DialogBoxV2";
import SingleInputForm, {
type SingleInputFormProps,
} from "@ente/shared/components/SingleInputForm";
+import { Dialog, DialogContent, DialogTitle } from "@mui/material";
import { t } from "i18next";
import React from "react";
import type { DialogVisiblityProps } from "./mui-custom";
@@ -53,16 +53,19 @@ export const NameInputDialog: React.FC<NameInputDialogProps> = ({
};
return (
- <DialogBoxV2 open={open} onClose={onClose} attributes={{ title }}>
- <SingleInputForm
- fieldType="text"
- placeholder={placeholder}
- initialValue={initialValue}
- callback={handleSubmit}
- buttonText={submitButtonTitle}
- submitButtonProps={{ sx: { mt: 1, mb: 2 } }}
- secondaryButtonAction={onClose}
- />
- </DialogBoxV2>
+ <Dialog open={open} onClose={onClose} maxWidth="xs" fullWidth>
+ <DialogTitle>{title}</DialogTitle>
+ <DialogContent>
+ <SingleInputForm
+ fieldType="text"
+ placeholder={placeholder}
+ initialValue={initialValue}
+ callback={handleSubmit}
+ buttonText={submitButtonTitle}
+ submitButtonProps={{ sx: { mt: 1, mb: 2 } }}
+ secondaryButtonAction={onClose}
+ />
+ </DialogContent>
+ </Dialog>
);
};