Skip to content

Commit

Permalink
wip n2
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet committed Oct 13, 2023
1 parent 25f4816 commit 6baecad
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions front/pages/w/[wId]/members/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 6baecad

Please sign in to comment.