mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
Compare commits
2 commits
2ea9a59d53
...
6b20bbac98
Author | SHA1 | Date | |
---|---|---|---|
|
6b20bbac98 | ||
|
0f0808aa56 |
1 changed files with 19 additions and 0 deletions
|
@ -6,6 +6,7 @@ import {
|
||||||
UserX,
|
UserX,
|
||||||
Group,
|
Group,
|
||||||
InfoCircle,
|
InfoCircle,
|
||||||
|
Flag,
|
||||||
} from "@styled-icons/boxicons-solid";
|
} from "@styled-icons/boxicons-solid";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { Link, useHistory } from "react-router-dom";
|
import { Link, useHistory } from "react-router-dom";
|
||||||
|
@ -246,6 +247,24 @@ export const UserProfile = observer(
|
||||||
<UserX size={28} />
|
<UserX size={28} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
|
{!user.bot && flags != 2 && flags != 4 && (
|
||||||
|
<Localizer>
|
||||||
|
<Tooltip
|
||||||
|
content={
|
||||||
|
<Text id="app.context_menu.report_user" />
|
||||||
|
}>
|
||||||
|
<IconButton
|
||||||
|
onClick={() =>
|
||||||
|
modalController.push({
|
||||||
|
type: "report",
|
||||||
|
target: user,
|
||||||
|
})
|
||||||
|
}>
|
||||||
|
<Flag size={28} />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
</Localizer>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{badges > 0 && (
|
{badges > 0 && (
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue