diff --git a/web/packages/new/photos/components/Gallery/index.tsx b/web/packages/new/photos/components/Gallery/index.tsx index 37a064592d..9728e0f150 100644 --- a/web/packages/new/photos/components/Gallery/index.tsx +++ b/web/packages/new/photos/components/Gallery/index.tsx @@ -87,26 +87,16 @@ export const PersonListHeader: React.FC = ({ ariaControls={"person-options"} triggerButtonIcon={} > - {person.type == "cgroup" ? ( - <> - } - centerAlign - onClick={() => console.log("test")} - > - {t("rename")} - - + {person.type != "cgroup" ? ( + ) : ( - <> - } - centerAlign - onClick={addPerson} - > - {pt("Add a name")} - - + } + centerAlign + onClick={addPerson} + > + {pt("Add a name")} + )} )} @@ -114,3 +104,25 @@ export const PersonListHeader: React.FC = ({ ); }; + +interface CGroupOptionsProps { + onAddPerson: () => void; +} +const CGroupPersonOptions: React.FC = ({ onAddPerson }) => ( + <> + } + centerAlign + onClick={() => console.log("test")} + > + {t("rename")} + + } + centerAlign + onClick={onAddPerson} + > + {pt("Add a name")} + + +);