Skip to content

Commit

Permalink
improve: ability to create new people from plans page (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
vassbo authored Jun 12, 2024
1 parent d8b3469 commit f6d0245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groups/GroupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const GroupPage = () => {
const getSidebarModules = () => {
const result = [] as JSX.Element[];
if (addSessionVisible) result.push(<SessionAdd key="sessionAdd" group={group} updatedFunction={handleSessionAdd} />);
if (addPersonVisible) result.push(<DisplayBox key="displayBox" id="personAddBox" headerIcon="person" headerText="Add Person"><PersonAdd getPhotoUrl={PersonHelper.getPhotoUrl} addFunction={addPerson} /></DisplayBox>);
if (addPersonVisible) result.push(<DisplayBox key="displayBox" id="personAddBox" headerIcon="person" headerText="Add Person"><PersonAdd getPhotoUrl={PersonHelper.getPhotoUrl} addFunction={addPerson} showCreatePersonOnNotFound /></DisplayBox>);
if (addMemberVisible) result.push(<MembersAdd key="membersAdd" group={group} addFunction={addPerson} />);
return result;
}
Expand Down

0 comments on commit f6d0245

Please sign in to comment.