mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 09:00:57 -05:00
Temporarily remove TextReact.
This commit is contained in:
parent
db8dedd3a7
commit
add94d59ff
1 changed files with 7 additions and 5 deletions
|
@ -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 />,
|
||||||
}}
|
}}
|
||||||
/>
|
/>*/
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue