From 3971756c966d97d5ce6e4068159c5e01e0a980bc Mon Sep 17 00:00:00 2001 From: philipperolet Date: Fri, 13 Oct 2023 15:12:47 +0200 Subject: [PATCH] mobile look --- front/pages/w/[wId]/members/index.tsx | 93 ++++++++++++++------------- 1 file changed, 49 insertions(+), 44 deletions(-) diff --git a/front/pages/w/[wId]/members/index.tsx b/front/pages/w/[wId]/members/index.tsx index cf38e29cd6c99..94246e23e3eda 100644 --- a/front/pages/w/[wId]/members/index.tsx +++ b/front/pages/w/[wId]/members/index.tsx @@ -105,39 +105,39 @@ export default function WorkspaceAdmin({ /> {inviteLink ? (
- - Invitation link is activated for domain{" "} - {`@${owner.allowedDomain}`} - -
+ Invitation link is activated for domain{" "} + {`@${owner.allowedDomain}`} +
-
-
-
-
+
+
@@ -221,7 +221,7 @@ export default function WorkspaceAdmin({ owner={owner} /> -
+
-
{displayList.map((elt, i) => (
{ if (isInvitation(elt)) setInvitationToRevoke(elt); else setChangeRoleMember(elt); @@ -252,20 +254,23 @@ export default function WorkspaceAdmin({ else setChangeRoleModalOpen(true); }} > -
+
{isInvitation(elt) ? ( ) : ( )}
- {!isInvitation(elt) && ( -
{elt.name}
- )} -
- {isInvitation(elt) - ? elt.inviteEmail - : elt.email || elt.username} +
+ {!isInvitation(elt) && ( +
{elt.name}
+ )} + +
+ {isInvitation(elt) + ? elt.inviteEmail + : elt.email || elt.username} +
{isInvitation(elt) ? ( @@ -292,7 +297,7 @@ export default function WorkspaceAdmin({ )}
-
+
@@ -595,7 +600,7 @@ function ChangeMemberModal({ key={role} onClick={() => handleMemberRoleChange(member, role as RoleType) - } // TODO + } label={role.charAt(0).toUpperCase() + role.slice(1)} /> ))}