2019-04-10 04:52:48 +08:00
|
|
|
import _ from 'lodash';
|
2019-04-04 04:11:47 +08:00
|
|
|
import React, { useEffect, useState } from 'react';
|
2019-02-27 01:08:15 +08:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
|
|
import injectWbResizeEvent from '/imports/ui/components/presentation/resize-wrapper/component';
|
|
|
|
import UserAvatar from '/imports/ui/components/user-avatar/component';
|
2020-10-03 01:29:27 +08:00
|
|
|
import TextInput from '/imports/ui/components/text-input/component';
|
2021-10-30 03:53:33 +08:00
|
|
|
import Styled from './styles';
|
2021-05-18 04:25:07 +08:00
|
|
|
import { PANELS, ACTIONS } from '../layout/enums';
|
2021-10-30 03:53:33 +08:00
|
|
|
import Settings from '/imports/ui/services/settings';
|
|
|
|
import browserInfo from '/imports/utils/browserInfo';
|
2022-05-20 01:28:58 +08:00
|
|
|
import Header from '/imports/ui/components/common/control-header/component';
|
2019-02-27 01:08:15 +08:00
|
|
|
|
|
|
|
const intlMessages = defineMessages({
|
|
|
|
waitingUsersTitle: {
|
|
|
|
id: 'app.userList.guest.waitingUsersTitle',
|
|
|
|
description: 'Title for the notes list',
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
id: 'app.userList.guest.waitingUsers',
|
|
|
|
description: 'Label for the waiting users',
|
|
|
|
},
|
2019-03-09 10:02:46 +08:00
|
|
|
optionTitle: {
|
|
|
|
id: 'app.userList.guest.optionTitle',
|
|
|
|
description: 'Label above the options',
|
|
|
|
},
|
2019-02-27 01:08:15 +08:00
|
|
|
allowAllAuthenticated: {
|
|
|
|
id: 'app.userList.guest.allowAllAuthenticated',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
|
|
|
allowAllGuests: {
|
|
|
|
id: 'app.userList.guest.allowAllGuests',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
|
|
|
allowEveryone: {
|
|
|
|
id: 'app.userList.guest.allowEveryone',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
|
|
|
denyEveryone: {
|
|
|
|
id: 'app.userList.guest.denyEveryone',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
|
|
|
pendingUsers: {
|
|
|
|
id: 'app.userList.guest.pendingUsers',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
|
|
|
pendingGuestUsers: {
|
|
|
|
id: 'app.userList.guest.pendingGuestUsers',
|
|
|
|
description: 'Title for the waiting users',
|
|
|
|
},
|
2021-09-04 19:45:52 +08:00
|
|
|
noPendingUsers: {
|
|
|
|
id: 'app.userList.guest.noPendingUsers',
|
|
|
|
description: 'Label for no users waiting',
|
|
|
|
},
|
2019-04-04 04:11:47 +08:00
|
|
|
rememberChoice: {
|
|
|
|
id: 'app.userList.guest.rememberChoice',
|
|
|
|
description: 'Remember label for checkbox',
|
|
|
|
},
|
2020-10-03 01:29:27 +08:00
|
|
|
emptyMessage: {
|
|
|
|
id: 'app.userList.guest.emptyMessage',
|
|
|
|
description: 'Empty guest lobby message label',
|
|
|
|
},
|
|
|
|
inputPlaceholder: {
|
|
|
|
id: 'app.userList.guest.inputPlaceholder',
|
|
|
|
description: 'Placeholder to guest lobby message input',
|
|
|
|
},
|
2022-01-12 22:10:30 +08:00
|
|
|
privateMessageLabel: {
|
|
|
|
id: 'app.userList.guest.privateMessageLabel',
|
|
|
|
description: 'Private message button label',
|
|
|
|
},
|
|
|
|
privateInputPlaceholder: {
|
|
|
|
id: 'app.userList.guest.privateInputPlaceholder',
|
|
|
|
description: 'Private input placeholder',
|
|
|
|
},
|
2020-01-13 23:45:08 +08:00
|
|
|
accept: {
|
|
|
|
id: 'app.userList.guest.acceptLabel',
|
2021-05-18 04:25:07 +08:00
|
|
|
description: 'Accept guest button label',
|
2020-01-13 23:45:08 +08:00
|
|
|
},
|
|
|
|
deny: {
|
|
|
|
id: 'app.userList.guest.denyLabel',
|
|
|
|
description: 'Deny guest button label',
|
|
|
|
},
|
2019-02-27 01:08:15 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
const ALLOW_STATUS = 'ALLOW';
|
|
|
|
const DENY_STATUS = 'DENY';
|
2021-10-30 03:53:33 +08:00
|
|
|
const { animations } = Settings.application;
|
2019-02-27 01:08:15 +08:00
|
|
|
|
2020-01-13 23:45:08 +08:00
|
|
|
const getNameInitials = (name) => {
|
|
|
|
const nameInitials = name.slice(0, 2);
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
return nameInitials.replace(/^\w/, (c) => c.toUpperCase());
|
|
|
|
};
|
2020-01-13 23:45:08 +08:00
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
const renderGuestUserItem = (
|
|
|
|
name, color, handleAccept, handleDeny, role, sequence, userId, avatar, intl,
|
2022-01-12 22:10:30 +08:00
|
|
|
privateMessageVisible, setPrivateGuestLobbyMessage, privateGuestLobbyMessage, isGuestLobbyMessageEnabled,
|
2021-05-18 04:25:07 +08:00
|
|
|
) => (
|
2022-02-03 02:34:36 +08:00
|
|
|
<React.Fragment key={`user-${userId}`}>
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.ListItem key={`userlist-item-${userId}`} animations={animations}>
|
|
|
|
<Styled.UserContentContainer key={`user-content-container-${userId}`}>
|
|
|
|
<Styled.UserAvatarContainer key={`user-avatar-container-${userId}`}>
|
2019-02-27 01:08:15 +08:00
|
|
|
<UserAvatar
|
2019-03-09 10:02:46 +08:00
|
|
|
key={`user-avatar-${userId}`}
|
2019-02-27 01:08:15 +08:00
|
|
|
moderator={role === 'MODERATOR'}
|
2020-09-15 07:13:47 +08:00
|
|
|
avatar={avatar}
|
2019-02-27 01:08:15 +08:00
|
|
|
color={color}
|
|
|
|
>
|
2020-01-13 23:45:08 +08:00
|
|
|
{getNameInitials(name)}
|
2019-02-27 01:08:15 +08:00
|
|
|
</UserAvatar>
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.UserAvatarContainer>
|
|
|
|
<Styled.UserName key={`user-name-${userId}`}>
|
2021-09-02 00:38:24 +08:00
|
|
|
{`[${sequence}] ${name}`}
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.UserName>
|
|
|
|
</Styled.UserContentContainer>
|
2019-02-27 01:08:15 +08:00
|
|
|
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.ButtonContainer key={`userlist-btns-${userId}`}>
|
2022-01-12 22:10:30 +08:00
|
|
|
{ isGuestLobbyMessageEnabled ? (
|
|
|
|
<Styled.WaitingUsersButton
|
|
|
|
key={`userbtn-message-${userId}`}
|
|
|
|
color="primary"
|
|
|
|
size="lg"
|
|
|
|
ghost
|
|
|
|
label={intl.formatMessage(intlMessages.privateMessageLabel)}
|
|
|
|
onClick={privateMessageVisible}
|
|
|
|
/>
|
|
|
|
) : null}
|
|
|
|
|
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.WaitingUsersButton
|
2019-03-09 10:02:46 +08:00
|
|
|
key={`userbtn-accept-${userId}`}
|
2019-02-27 01:08:15 +08:00
|
|
|
color="primary"
|
|
|
|
size="lg"
|
|
|
|
ghost
|
2020-01-13 23:45:08 +08:00
|
|
|
label={intl.formatMessage(intlMessages.accept)}
|
2019-02-27 01:08:15 +08:00
|
|
|
onClick={handleAccept}
|
|
|
|
/>
|
|
|
|
|
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.WaitingUsersButton
|
2019-03-09 10:02:46 +08:00
|
|
|
key={`userbtn-deny-${userId}`}
|
2021-02-14 18:49:59 +08:00
|
|
|
color="danger"
|
2019-02-27 01:08:15 +08:00
|
|
|
size="lg"
|
|
|
|
ghost
|
2020-01-13 23:45:08 +08:00
|
|
|
label={intl.formatMessage(intlMessages.deny)}
|
2019-02-27 01:08:15 +08:00
|
|
|
onClick={handleDeny}
|
|
|
|
/>
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.ButtonContainer>
|
|
|
|
</Styled.ListItem>
|
2022-01-12 22:10:30 +08:00
|
|
|
{ isGuestLobbyMessageEnabled ? (
|
|
|
|
<Styled.PrivateLobbyMessage
|
|
|
|
id={`privateMessage-${userId}`}>
|
|
|
|
<TextInput
|
|
|
|
maxLength={128}
|
|
|
|
placeholder={intl.formatMessage(intlMessages.privateInputPlaceholder,
|
|
|
|
{ 0: name })}
|
|
|
|
send={setPrivateGuestLobbyMessage} />
|
|
|
|
<p>
|
|
|
|
<i>
|
|
|
|
"
|
|
|
|
{privateGuestLobbyMessage.length > 0
|
|
|
|
? privateGuestLobbyMessage
|
|
|
|
: intl.formatMessage(intlMessages.emptyMessage)}
|
|
|
|
"
|
|
|
|
</i>
|
|
|
|
</p>
|
|
|
|
</Styled.PrivateLobbyMessage>
|
|
|
|
) : null}
|
2022-02-03 02:34:36 +08:00
|
|
|
</React.Fragment>
|
2019-02-27 01:08:15 +08:00
|
|
|
);
|
|
|
|
|
2021-09-04 19:45:52 +08:00
|
|
|
const renderNoUserWaitingItem = (message) => (
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.PendingUsers>
|
|
|
|
<Styled.NoPendingUsers>
|
2021-09-04 19:45:52 +08:00
|
|
|
{message}
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.NoPendingUsers>
|
|
|
|
</Styled.PendingUsers>
|
2021-09-04 19:45:52 +08:00
|
|
|
);
|
|
|
|
|
2022-01-12 22:10:30 +08:00
|
|
|
const renderPendingUsers = (message, usersArray, action, intl,
|
|
|
|
privateMessageVisible, setPrivateGuestLobbyMessage,
|
|
|
|
privateGuestLobbyMessage, isGuestLobbyMessageEnabled
|
|
|
|
) => {
|
2019-02-27 01:08:15 +08:00
|
|
|
if (!usersArray.length) return null;
|
|
|
|
return (
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.PendingUsers>
|
|
|
|
<Styled.MainTitle>{message}</Styled.MainTitle>
|
|
|
|
<Styled.UsersWrapper>
|
|
|
|
<Styled.Users>
|
2020-08-19 05:31:22 +08:00
|
|
|
{usersArray.map((user, idx) => renderGuestUserItem(
|
|
|
|
user.name,
|
|
|
|
user.color,
|
|
|
|
() => action([user], ALLOW_STATUS),
|
|
|
|
() => action([user], DENY_STATUS),
|
|
|
|
user.role,
|
|
|
|
idx + 1,
|
|
|
|
user.intId,
|
|
|
|
user.avatar,
|
|
|
|
intl,
|
2022-01-12 22:10:30 +08:00
|
|
|
() => privateMessageVisible(`privateMessage-${user.intId}`),
|
|
|
|
(message) => setPrivateGuestLobbyMessage(message, user.intId),
|
|
|
|
privateGuestLobbyMessage(user.intId),
|
|
|
|
isGuestLobbyMessageEnabled,
|
2020-08-19 05:31:22 +08:00
|
|
|
))}
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.Users>
|
|
|
|
</Styled.UsersWrapper>
|
|
|
|
</Styled.PendingUsers>
|
2019-02-27 01:08:15 +08:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
const WaitingUsers = (props) => {
|
2019-04-04 04:21:48 +08:00
|
|
|
const [rememberChoice, setRememberChoice] = useState(false);
|
2019-04-04 04:11:47 +08:00
|
|
|
|
2019-02-27 01:08:15 +08:00
|
|
|
const {
|
|
|
|
intl,
|
|
|
|
authenticatedUsers,
|
2022-01-12 22:10:30 +08:00
|
|
|
privateMessageVisible,
|
2019-02-27 01:08:15 +08:00
|
|
|
guestUsers,
|
|
|
|
guestUsersCall,
|
2019-04-04 04:11:47 +08:00
|
|
|
changeGuestPolicy,
|
2020-10-03 01:29:27 +08:00
|
|
|
isGuestLobbyMessageEnabled,
|
|
|
|
setGuestLobbyMessage,
|
|
|
|
guestLobbyMessage,
|
2022-01-12 22:10:30 +08:00
|
|
|
setPrivateGuestLobbyMessage,
|
|
|
|
privateGuestLobbyMessage,
|
2019-04-10 04:52:48 +08:00
|
|
|
authenticatedGuest,
|
2021-08-05 19:03:24 +08:00
|
|
|
layoutContextDispatch,
|
2021-05-13 00:01:04 +08:00
|
|
|
allowRememberChoice,
|
2019-02-27 01:08:15 +08:00
|
|
|
} = props;
|
|
|
|
|
2021-09-04 19:45:52 +08:00
|
|
|
const existPendingUsers = authenticatedUsers.length > 0 || guestUsers.length > 0;
|
|
|
|
|
|
|
|
const closePanel = () => {
|
|
|
|
layoutContextDispatch({
|
|
|
|
type: ACTIONS.SET_SIDEBAR_CONTENT_IS_OPEN,
|
|
|
|
value: false,
|
|
|
|
});
|
|
|
|
layoutContextDispatch({
|
|
|
|
type: ACTIONS.SET_SIDEBAR_CONTENT_PANEL,
|
|
|
|
value: PANELS.NONE,
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
const {
|
|
|
|
isWaitingRoomEnabled,
|
|
|
|
} = props;
|
|
|
|
if (!isWaitingRoomEnabled && !existPendingUsers) {
|
|
|
|
closePanel();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2019-04-04 04:11:47 +08:00
|
|
|
const onCheckBoxChange = (e) => {
|
|
|
|
const { checked } = e.target;
|
2019-04-04 04:21:48 +08:00
|
|
|
setRememberChoice(checked);
|
2019-04-04 04:11:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const changePolicy = (shouldExecutePolicy, policyRule, cb) => () => {
|
|
|
|
if (shouldExecutePolicy) {
|
|
|
|
changeGuestPolicy(policyRule);
|
|
|
|
}
|
2021-09-04 19:45:52 +08:00
|
|
|
closePanel();
|
2019-04-04 04:11:47 +08:00
|
|
|
return cb();
|
|
|
|
};
|
|
|
|
|
2021-02-14 18:49:59 +08:00
|
|
|
const renderButton = (message, { key, color, policy, action }) => (
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.CustomButton
|
2019-04-04 04:11:47 +08:00
|
|
|
key={key}
|
2021-02-14 18:49:59 +08:00
|
|
|
color={color}
|
2019-04-04 04:11:47 +08:00
|
|
|
label={message}
|
|
|
|
size="lg"
|
2019-04-04 04:21:48 +08:00
|
|
|
onClick={changePolicy(rememberChoice, policy, action)}
|
2019-04-04 04:11:47 +08:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
|
2019-04-10 04:52:48 +08:00
|
|
|
const authGuestButtonsData = [
|
2019-02-27 01:08:15 +08:00
|
|
|
{
|
|
|
|
messageId: intlMessages.allowAllAuthenticated,
|
|
|
|
action: () => guestUsersCall(authenticatedUsers, ALLOW_STATUS),
|
2019-03-09 10:02:46 +08:00
|
|
|
key: 'allow-all-auth',
|
2021-02-14 18:49:59 +08:00
|
|
|
color: 'primary',
|
2019-04-04 04:11:47 +08:00
|
|
|
policy: 'ALWAYS_ACCEPT_AUTH',
|
2019-02-27 01:08:15 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
messageId: intlMessages.allowAllGuests,
|
2019-04-04 04:11:47 +08:00
|
|
|
action: () => guestUsersCall(
|
2019-04-04 04:21:48 +08:00
|
|
|
[...guestUsers].concat(rememberChoice ? authenticatedUsers : []),
|
2019-04-04 04:11:47 +08:00
|
|
|
ALLOW_STATUS,
|
|
|
|
),
|
2019-03-09 10:02:46 +08:00
|
|
|
key: 'allow-all-guest',
|
2021-02-14 18:49:59 +08:00
|
|
|
color: 'primary',
|
2019-04-04 04:11:47 +08:00
|
|
|
policy: 'ALWAYS_ACCEPT',
|
2019-02-27 01:08:15 +08:00
|
|
|
},
|
2019-04-10 04:52:48 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
const guestButtonsData = [
|
2019-02-27 01:08:15 +08:00
|
|
|
{
|
|
|
|
messageId: intlMessages.allowEveryone,
|
|
|
|
action: () => guestUsersCall([...guestUsers, ...authenticatedUsers], ALLOW_STATUS),
|
2019-03-09 10:02:46 +08:00
|
|
|
key: 'allow-everyone',
|
2021-02-14 18:49:59 +08:00
|
|
|
color: 'primary',
|
2019-04-04 04:11:47 +08:00
|
|
|
policy: 'ALWAYS_ACCEPT',
|
2019-02-27 01:08:15 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
messageId: intlMessages.denyEveryone,
|
|
|
|
action: () => guestUsersCall([...guestUsers, ...authenticatedUsers], DENY_STATUS),
|
2019-03-09 10:02:46 +08:00
|
|
|
key: 'deny-everyone',
|
2021-02-14 18:49:59 +08:00
|
|
|
color: 'danger',
|
2019-04-04 04:11:47 +08:00
|
|
|
policy: 'ALWAYS_DENY',
|
2019-02-27 01:08:15 +08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2021-08-09 22:24:02 +08:00
|
|
|
const buttonsData = authenticatedGuest
|
|
|
|
? _.concat(authGuestButtonsData, guestButtonsData)
|
|
|
|
: guestButtonsData;
|
2019-04-10 04:52:48 +08:00
|
|
|
|
2021-10-30 03:53:33 +08:00
|
|
|
const { isChrome } = browserInfo;
|
|
|
|
|
2019-02-27 01:08:15 +08:00
|
|
|
return (
|
2021-10-30 03:53:33 +08:00
|
|
|
<Styled.Panel data-test="note" isChrome={isChrome}>
|
2022-05-20 01:28:58 +08:00
|
|
|
<Header
|
|
|
|
leftButtonProps={{
|
|
|
|
onClick: () => closePanel(),
|
|
|
|
label: intl.formatMessage(intlMessages.title),
|
|
|
|
}}
|
|
|
|
/>
|
2021-12-10 22:55:37 +08:00
|
|
|
<Styled.ScrollableArea>
|
2021-11-13 02:22:53 +08:00
|
|
|
{isGuestLobbyMessageEnabled ? (
|
2021-12-10 22:55:37 +08:00
|
|
|
<Styled.LobbyMessage>
|
2021-11-13 02:22:53 +08:00
|
|
|
<TextInput
|
|
|
|
maxLength={128}
|
|
|
|
placeholder={intl.formatMessage(intlMessages.inputPlaceholder)}
|
|
|
|
send={setGuestLobbyMessage}
|
|
|
|
/>
|
|
|
|
<p>
|
|
|
|
<i>
|
|
|
|
"
|
|
|
|
{
|
2021-12-10 22:55:37 +08:00
|
|
|
guestLobbyMessage.length > 0
|
|
|
|
? guestLobbyMessage
|
|
|
|
: intl.formatMessage(intlMessages.emptyMessage)
|
|
|
|
}
|
2021-11-13 02:22:53 +08:00
|
|
|
"
|
|
|
|
</i>
|
|
|
|
</p>
|
2021-12-10 22:55:37 +08:00
|
|
|
</Styled.LobbyMessage>
|
2021-05-13 00:01:04 +08:00
|
|
|
) : null}
|
2022-04-09 04:30:21 +08:00
|
|
|
<Styled.ModeratorActions>
|
2021-12-10 22:55:37 +08:00
|
|
|
<Styled.MainTitle>{intl.formatMessage(intlMessages.optionTitle)}</Styled.MainTitle>
|
2021-11-13 02:22:53 +08:00
|
|
|
{
|
2021-12-10 22:55:37 +08:00
|
|
|
buttonsData.map((buttonData) => renderButton(
|
|
|
|
intl.formatMessage(buttonData.messageId),
|
|
|
|
buttonData,
|
|
|
|
))
|
|
|
|
}
|
2021-11-13 02:22:53 +08:00
|
|
|
{allowRememberChoice ? (
|
2021-12-10 22:55:37 +08:00
|
|
|
<Styled.RememberContainer>
|
2021-11-13 02:22:53 +08:00
|
|
|
<input id="rememderCheckboxId" type="checkbox" onChange={onCheckBoxChange} />
|
|
|
|
<label htmlFor="rememderCheckboxId">
|
|
|
|
{intl.formatMessage(intlMessages.rememberChoice)}
|
|
|
|
</label>
|
2021-12-10 22:55:37 +08:00
|
|
|
</Styled.RememberContainer>
|
2021-11-13 02:22:53 +08:00
|
|
|
) : null}
|
2022-04-09 04:30:21 +08:00
|
|
|
</Styled.ModeratorActions>
|
2021-11-13 02:22:53 +08:00
|
|
|
{renderPendingUsers(
|
|
|
|
intl.formatMessage(intlMessages.pendingUsers,
|
|
|
|
{ 0: authenticatedUsers.length }),
|
|
|
|
authenticatedUsers,
|
|
|
|
guestUsersCall,
|
|
|
|
intl,
|
2022-01-12 22:10:30 +08:00
|
|
|
privateMessageVisible,
|
|
|
|
setPrivateGuestLobbyMessage,
|
|
|
|
privateGuestLobbyMessage,
|
|
|
|
isGuestLobbyMessageEnabled,
|
2021-11-13 02:22:53 +08:00
|
|
|
)}
|
|
|
|
{renderPendingUsers(
|
|
|
|
intl.formatMessage(intlMessages.pendingGuestUsers,
|
|
|
|
{ 0: guestUsers.length }),
|
|
|
|
guestUsers,
|
|
|
|
guestUsersCall,
|
|
|
|
intl,
|
2022-01-12 22:10:30 +08:00
|
|
|
privateMessageVisible,
|
|
|
|
setPrivateGuestLobbyMessage,
|
|
|
|
privateGuestLobbyMessage,
|
|
|
|
isGuestLobbyMessageEnabled,
|
2021-11-13 02:22:53 +08:00
|
|
|
)}
|
2021-12-10 22:55:37 +08:00
|
|
|
{!existPendingUsers && (
|
|
|
|
renderNoUserWaitingItem(intl.formatMessage(intlMessages.noPendingUsers))
|
|
|
|
)}
|
|
|
|
</Styled.ScrollableArea>
|
2021-10-30 03:53:33 +08:00
|
|
|
</Styled.Panel>
|
2019-02-27 01:08:15 +08:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default injectWbResizeEvent(injectIntl(WaitingUsers));
|