diff --git a/ui/components/invitations/invitation-details.tsx b/ui/components/invitations/invitation-details.tsx index 3cd2224b59..17525e1eca 100644 --- a/ui/components/invitations/invitation-details.tsx +++ b/ui/components/invitations/invitation-details.tsx @@ -25,6 +25,21 @@ interface InvitationDetailsProps { selfLink: string; } +const InfoField = ({ + label, + children, +}: { + label: string; + children: React.ReactNode; +}) => ( +
+ {label} +
+ {children} +
+
+); + export const InvitationDetails = ({ attributes }: InvitationDetailsProps) => { // window.location.origin to get the current base URL const baseUrl = @@ -42,45 +57,37 @@ export const InvitationDetails = ({ attributes }: InvitationDetailsProps) => { shadow="sm" > -

- Invitation Details +

+ Invitation details

-
- Email: - {attributes.email} -
+ {attributes.email} -
- State: - {attributes.state} -
+ {attributes.token} -
- Token: - {attributes.token} -
+
+ + {attributes.state} + -
- Expires At: - -
+ + + -
- Inserted At: - -
+ + + -
- Updated At: - + + +
-

+

Share this link with the user:

@@ -93,7 +100,7 @@ export const InvitationDetails = ({ attributes }: InvitationDetailsProps) => { variant="bordered" className="overflow-hidden text-ellipsis whitespace-nowrap" > -

+

{invitationLink}