mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
feat: add changelog entry for in-app reporting
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { API, Message as MessageInterface, User } from "revolt.js";
|
||||
import styled from "styled-components";
|
||||
|
||||
import { Text } from "preact-i18n";
|
||||
|
||||
@@ -27,6 +28,13 @@ const USER_REASONS: API.UserReportReason[] = [
|
||||
"Underage",
|
||||
];
|
||||
|
||||
/**
|
||||
* Add padding to the message container
|
||||
*/
|
||||
const MessageContainer = styled.div`
|
||||
margin-block-end: 16px;
|
||||
`;
|
||||
|
||||
/**
|
||||
* Report creation modal
|
||||
*/
|
||||
@@ -63,7 +71,9 @@ export default function ReportContent({
|
||||
selected: {
|
||||
element:
|
||||
target instanceof MessageInterface ? (
|
||||
<Message message={target} head />
|
||||
<MessageContainer>
|
||||
<Message message={target} head attachContext />
|
||||
</MessageContainer>
|
||||
) : target instanceof User ? (
|
||||
<Row centred>
|
||||
<UserShort user={target} size={32} />
|
||||
|
||||
Reference in New Issue
Block a user