From 6baecadcbd9cefc732d4d4c03ac2fc9c94a25b5e Mon Sep 17 00:00:00 2001 From: philipperolet Date: Fri, 13 Oct 2023 14:06:36 +0200 Subject: [PATCH] wip n2 --- front/pages/w/[wId]/members/index.tsx | 49 +-------------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/front/pages/w/[wId]/members/index.tsx b/front/pages/w/[wId]/members/index.tsx index 63252bad5e7f7..71f0dfacfef25 100644 --- a/front/pages/w/[wId]/members/index.tsx +++ b/front/pages/w/[wId]/members/index.tsx @@ -74,50 +74,6 @@ export default function WorkspaceAdmin({ owner.allowedDomain !== null ? `${url}/w/${owner.sId}/join` : null; const { members } = useMembers(owner); const { invitations } = useWorkspaceInvitations(owner); - const fakeMembers: UserType[] = [ - { - name: "John Doe", - email: "john@doe.com", - workspaces: [{ role: "admin" }], - image: null, - }, - { - name: "Jane Doe", - email: "jane@doe.fr", - workspaces: [{ role: "builder" }], - image: null, - }, - { - name: "Coucou Mec", - email: "coucou@mec.com", - workspaces: [{ role: "user" }], - image: null, - }, - { - name: "Pas la", - email: "pas@la.com", - workspaces: [{ role: "none" }], - image: null, - }, - ].map((m) => ({ ...members[0], ...m, id: -1 })); - - const fakeInvitations: MembershipInvitationType[] = [ - { - inviteEmail: "test@toto.com", - status: "pending", - id: -1, - }, - { - inviteEmail: "dasfdsafdsafds@dafdasdfas.com", - status: "consumed", - id: -2, - }, - { - inviteEmail: "thelast@lastone.com", - status: "revoked", - id: -3, - }, - ]; const [inviteSettingsModalOpen, setInviteSettingsModalOpen] = useState(false); return ( @@ -189,10 +145,7 @@ export default function WorkspaceAdmin({
)} - +