diff --git a/src/app/[orgId]/settings/access/invitations/RegenerateInvitationForm.tsx b/src/app/[orgId]/settings/access/invitations/RegenerateInvitationForm.tsx index ab34579f..a8acb791 100644 --- a/src/app/[orgId]/settings/access/invitations/RegenerateInvitationForm.tsx +++ b/src/app/[orgId]/settings/access/invitations/RegenerateInvitationForm.tsx @@ -1,11 +1,14 @@ import { Button } from "@app/components/ui/button"; import { - Dialog, - DialogContent, - DialogFooter, - DialogHeader, - DialogTitle -} from "@app/components/ui/dialog"; + Credenza, + CredenzaBody, + CredenzaClose, + CredenzaContent, + CredenzaDescription, + CredenzaFooter, + CredenzaHeader, + CredenzaTitle +} from "@app/components/Credenza"; import { useState, useEffect } from "react"; import { createApiClient } from "@app/lib/api"; import { useEnvContext } from "@app/hooks/useEnvContext"; @@ -20,6 +23,7 @@ import { SelectTrigger, SelectValue } from "@app/components/ui/select"; +import { Label } from "@app/components/ui/label"; type RegenerateInvitationFormProps = { open: boolean; @@ -153,7 +157,7 @@ export default function RegenerateInvitationForm({ } return ( - { setOpen(isOpen); @@ -162,73 +166,76 @@ export default function RegenerateInvitationForm({ } }} > - - - Regenerate Invitation - - {!inviteLink ? ( -
-

- Are you sure you want to regenerate the invitation - for {invitation?.email}? This will revoke the - previous invitation. -

-
- - setSendEmail(e as boolean) - } - /> - + + + Regenerate Invitation + + Revoke previous invitation and create a new one + + + + {!inviteLink ? ( +
+

+ Are you sure you want to regenerate the + invitation for {invitation?.email}? This + will revoke the previous invitation. +

+
+ + setSendEmail(e as boolean) + } + /> + +
+
+ + +
-
- - + ) : ( +
+

+ The invitation has been regenerated. The user + must access the link below to accept the + invitation. +

+
-
- ) : ( -
-

- The invitation has been regenerated. The user must - access the link below to accept the invitation. -

- -
- )} - + )} +
+ {!inviteLink ? ( <> - + + + + + + )} - - -
+ + + ); }