Temporarily remove TextReact.

This commit is contained in:
Paul 2021-08-08 18:40:25 +01:00
parent db8dedd3a7
commit add94d59ff

View file

@ -70,29 +70,31 @@ export default observer(({ channel }: Props) => {
const userlist = [...users].map((x) => ( const userlist = [...users].map((x) => (
<Username key={x!._id} user={x} showServerIdentity /> <Username key={x!._id} user={x} showServerIdentity />
)); ));
const user = userlist.pop(); //const user = userlist.pop();
for (let i = 0; i < userlist.length - 1; i++) { for (let i = 0; i < userlist.length - 1; i++) {
userlist.splice(i * 2 + 1, 0, <span key={`sep_${i}`}>, </span>); userlist.splice(i * 2 + 1, 0, <span key={`sep_${i}`}>, </span>);
} }
text = ( text = (
<TextReact userlist
/*<TextReact
id="app.main.channel.typing.multiple" id="app.main.channel.typing.multiple"
fields={{ fields={{
user, user,
userlist, userlist,
}} }}
/> />*/
); );
} else { } else {
text = ( text = (
<TextReact <Username user={users[0]} showServerIdentity />
/*<TextReact
id="app.main.channel.typing.single" id="app.main.channel.typing.single"
fields={{ fields={{
user: <Username user={users[0]} showServerIdentity />, user: <Username user={users[0]} showServerIdentity />,
}} }}
/> />*/
); );
} }