diff --git a/src/modules/InvitesTable/InvitesTable.test.tsx b/src/modules/InvitesTable/InvitesTable.test.tsx index 657f2dd12..718e5c5e8 100644 --- a/src/modules/InvitesTable/InvitesTable.test.tsx +++ b/src/modules/InvitesTable/InvitesTable.test.tsx @@ -32,7 +32,9 @@ describe("", () => { }); expect(screen.getByText(pendingInvite.user.name)).toBeInTheDocument(); - expect(screen.getByText("Invited")).toBeInTheDocument(); + expect( + screen.getByText("Safe People Registry account created") + ).toBeInTheDocument(); }); it("has no accessibility violations", async () => { diff --git a/src/modules/InvitesTable/InvitesTable.tsx b/src/modules/InvitesTable/InvitesTable.tsx index 65acea196..374706e72 100644 --- a/src/modules/InvitesTable/InvitesTable.tsx +++ b/src/modules/InvitesTable/InvitesTable.tsx @@ -42,7 +42,7 @@ export default function InvitesTable({ cell: info => formatDisplayLongDate(info.getValue()), }), createDefaultColumn("status", { - accessorKey: "user.unclaimed", + accessorKey: "status", cell: info => renderRegistered(info.getValue()), }), ]; diff --git a/src/organisms/Projects/Projects.tsx b/src/organisms/Projects/Projects.tsx index 3cb5e591a..a24e9ea68 100644 --- a/src/organisms/Projects/Projects.tsx +++ b/src/organisms/Projects/Projects.tsx @@ -138,6 +138,35 @@ export default function Projects({ }} /> + + {showSponsorship && isSponsorship && ( + + {t("ownProjectsTitle")} + + )} + + {showSponsorship && isSponsorship && ( @@ -170,35 +199,6 @@ export default function Projects({ /> )} - - {showSponsorship && isSponsorship && ( - - {t("ownProjectsTitle")} - - )} - - ); } diff --git a/src/utils/cells.tsx b/src/utils/cells.tsx index e7c571ca2..bc6a41fa7 100644 --- a/src/utils/cells.tsx +++ b/src/utils/cells.tsx @@ -1,6 +1,6 @@ "use client"; -import { Status } from "@/consts/application"; +import { PendingInvite, Status } from "@/consts/application"; import { Link } from "@/i18n/routing"; import { getName, injectParamsIntoPath } from "@/utils/application"; import WarningAmberOutlinedIcon from "@mui/icons-material/WarningAmberOutlined"; @@ -49,10 +49,10 @@ function renderAffiliationDateRangeCell( ); } -const renderRegistered = (unclaimed: boolean) => { +const renderRegistered = (status: PendingInvite) => { return ( - {unclaimed ? ( + {status === PendingInvite.PENDING ? ( ) : (