-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25f4816
commit 6baecad
Showing
1 changed file
with
1 addition
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: "[email protected]", | ||
workspaces: [{ role: "admin" }], | ||
image: null, | ||
}, | ||
{ | ||
name: "Jane Doe", | ||
email: "[email protected]", | ||
workspaces: [{ role: "builder" }], | ||
image: null, | ||
}, | ||
{ | ||
name: "Coucou Mec", | ||
email: "[email protected]", | ||
workspaces: [{ role: "user" }], | ||
image: null, | ||
}, | ||
{ | ||
name: "Pas la", | ||
email: "[email protected]", | ||
workspaces: [{ role: "none" }], | ||
image: null, | ||
}, | ||
].map((m) => ({ ...members[0], ...m, id: -1 })); | ||
|
||
const fakeInvitations: MembershipInvitationType[] = [ | ||
{ | ||
inviteEmail: "[email protected]", | ||
status: "pending", | ||
id: -1, | ||
}, | ||
{ | ||
inviteEmail: "[email protected]", | ||
status: "consumed", | ||
id: -2, | ||
}, | ||
{ | ||
inviteEmail: "[email protected]", | ||
status: "revoked", | ||
id: -3, | ||
}, | ||
]; | ||
const [inviteSettingsModalOpen, setInviteSettingsModalOpen] = useState(false); | ||
|
||
return ( | ||
|
@@ -189,10 +145,7 @@ export default function WorkspaceAdmin({ | |
<div></div> | ||
)} | ||
</div> | ||
<MemberList | ||
members={[...fakeMembers, ...members]} | ||
invitations={[...fakeInvitations, ...invitations]} | ||
/> | ||
<MemberList members={members} invitations={invitations} /> | ||
</div> | ||
</Page> | ||
</AppLayout> | ||
|