diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx index 3e11636aee..cc2a95571d 100644 --- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx +++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.team/route.tsx @@ -20,16 +20,6 @@ import { UserAvatar } from "~/components/UserProfilePhoto"; import { AdminDebugTooltip } from "~/components/admin/debugTooltip"; import { CopyableText } from "~/components/primitives/CopyableText"; import { PageBody, PageContainer } from "~/components/layout/AppLayout"; -import { - Alert, - AlertCancel, - AlertContent, - AlertDescription, - AlertFooter, - AlertHeader, - AlertTitle, - AlertTrigger, -} from "~/components/primitives/Alert"; import { Button, ButtonContent, LinkButton } from "~/components/primitives/Buttons"; import { PermissionButton } from "~/components/primitives/PermissionButton"; import { DateTime } from "~/components/primitives/DateTime"; @@ -659,8 +649,14 @@ function LeaveRemoveButton({ + Are you sure you want to leave the team? You will no longer have access to{" "} + {organization.title}. To regain access, you + will need to be invited again. + + } actionText="Leave team" /> ); @@ -684,8 +680,16 @@ function LeaveRemoveButton({ + Are you sure you want to remove{" "} + {member.user.name ?? member.user.email} from the + team? They will no longer have access to{" "} + {organization.title}. To regain access, you will + need to invite them again. + + } actionText="Remove from team" /> ); @@ -795,7 +799,7 @@ function LeaveTeamModal({ member: Member; buttonText: string; title: string; - description: string; + description: React.ReactNode; actionText: string; }) { const [open, setOpen] = useState(false); @@ -811,28 +815,32 @@ function LeaveTeamModal({ }); return ( - setOpen(o)}> - + + - - - - {title} - {description} - - - - - -
setOpen(false)}> - - -
-
-
-
+ + + {title} +
setOpen(false)}> + + + {description} + + + {actionText} + + } + cancelButton={ + + + + } + /> + +
+ ); }