Use actual API
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { pt } from "@/base/i18n";
|
||||
import { addPerson } from "@/new/photos/services/ml";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -62,9 +63,7 @@ export const AddPersonDialog: React.FC<AddPersonDialogProps> = ({
|
||||
console.log("handleSelectPerson", id, cluster);
|
||||
};
|
||||
|
||||
const handleAddPersonWithName = (name: string) => {
|
||||
console.log("handleAddPersonWithName", name);
|
||||
};
|
||||
const handleAddPersonWithName = (name: string) => addPerson(name, cluster);
|
||||
|
||||
// [Note: Calling setState during rendering]
|
||||
//
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
addPerson,
|
||||
deletePerson,
|
||||
renamePerson,
|
||||
} from "@/new/photos/services/ml/";
|
||||
} from "@/new/photos/services/ml";
|
||||
import { type Person } from "@/new/photos/services/ml/people";
|
||||
import OverflowMenu from "@ente/shared/components/OverflowMenu/menu";
|
||||
import { OverflowMenuOption } from "@ente/shared/components/OverflowMenu/option";
|
||||
|
||||
Reference in New Issue
Block a user