WIP: Add url param to define which userlist render

This commit is contained in:
Tainan Felipe 2023-04-17 11:21:07 -03:00
parent 0448ad8043
commit 7ed216888c

View File

@ -11,7 +11,9 @@ import WhiteboardService from '/imports/ui/components/whiteboard/service';
import Meetings from '/imports/api/meetings'; import Meetings from '/imports/api/meetings';
import UserListParticipants from './user-list-participants/component'; import UserListParticipants from './user-list-participants/component';
window.showOldUserList = false; const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const userList = urlParams.get('userList');
const UserParticipantsContainer = (props) => { const UserParticipantsContainer = (props) => {
const { const {
formatUsers, formatUsers,
@ -74,9 +76,22 @@ const Container = withTracker(() => {
})(UserParticipantsContainer); })(UserParticipantsContainer);
const blank = () => ( const blank = () => (
<> <>
{window.showOldUserList ? <UserListParticipants /> : null } {
(
userList === 'graphql'
|| userList === 'both'
|| !userList
) ? <UserListParticipants />
: null
}
<br /> <br />
<Container /> {
(
userList === 'meteor'
|| userList === 'both'
) ? <Container />
: null
}
</> </>
); );
export default blank; export default blank;