Skip to content

Commit

Permalink
Merge pull request #406 from sinamics/invite-title
Browse files Browse the repository at this point in the history
Fix user invitation page title
  • Loading branch information
sinamics authored May 9, 2024
2 parents bf65b21 + f07f05c commit 5cfc08a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/organization/[orgid]/invite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ const InviteCard = ({ invite, organizationId }) => {
}, [invite.resendable]);

const resendTimeLimit = new Date(new Date(invite.mailSentAt).getTime() + 60000);
const pageTitle = `${globalSiteTitle} - Invitations`;

return (
<div
className={cn(
"border border-dashed border-gray-200 rounded-lg p-4 dark:border-gray-800 bg-primary/10 shadow-md cursor-pointer",
{ "bg-red-500/30": invite.hasExpired },
)}
>
<HeadSection title={pageTitle} />
<div className="flex justify-between space-x-2">
<div>
<h3 className="text-sm font-semibold">{invite.email}</h3>
Expand Down Expand Up @@ -130,8 +129,11 @@ const Invites = () => {
const { data: orgInvites } = api.org.getInvites.useQuery({
organizationId,
});

const pageTitle = `${globalSiteTitle} - Invitations`;
return (
<div className="">
<main>
<HeadSection title={pageTitle} />
<div className="space-y-5 bg-base-200 rounded-lg p-5">
<div className="space-y-2">
<h1 className="text-2xl font-bold">{t("invitation.title")}</h1>
Expand Down Expand Up @@ -164,7 +166,7 @@ const Invites = () => {
</div>
</div>
</div>
</div>
</main>
);
};

Expand Down

0 comments on commit 5cfc08a

Please sign in to comment.