diff --git a/apps/web/src/components/Dashboard/Team.tsx b/apps/web/src/components/Dashboard/Team.tsx index 98aedb9ed..c13f9787a 100644 --- a/apps/web/src/components/Dashboard/Team.tsx +++ b/apps/web/src/components/Dashboard/Team.tsx @@ -22,13 +22,17 @@ import { AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, - AlertDialogTrigger, } from '../ui/alert-dialog' import Spinner from '@/components/Spinner' interface TeamMember { id: string email: string + addedBy: { + id: string + email: string + } | null + addedAt: string } const emailRegex = new RegExp( @@ -62,6 +66,7 @@ export const TeamContent = ({ `${process.env.NEXT_PUBLIC_BILLING_API_URL}/teams/${team.id}/users`, { headers: { + 'X-User-Access-Token': user.accessToken, 'X-Team-API-Key': team.apiKeys[0], }, } @@ -261,13 +266,15 @@ export const TeamContent = ({ Email + Added by + Added at {members.length === 0 ? ( - + No members found @@ -278,13 +285,18 @@ export const TeamContent = ({ key={user.id} > {user.email} + {user.addedBy?.email} + {user.addedAt + ? new Date(user.addedAt).toLocaleString() + : ''} + + @@ -295,18 +307,13 @@ export const TeamContent = ({ )} - - - - You are about to delete a member from the team + You are about to remove a member from the team - This action cannot be undone. This will permanently delete the + This action cannot be undone. This will permanently remove the member from the team. @@ -321,7 +328,7 @@ export const TeamContent = ({ className="bg-red-500 text-white hover:bg-red-600" onClick={() => deleteUserFromTeam()} > - Continue + Remove