fix: remove unused useRoomName import, run prettier on all changed files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -67,9 +67,10 @@ export function ReportRoomModal({ roomId, onClose }: ReportRoomModalProps) {
|
||||
submitReport(fullReason);
|
||||
};
|
||||
|
||||
const errcode = (reportState.status === AsyncStatus.Error
|
||||
? (reportState.error as { errcode?: string })?.errcode
|
||||
: undefined);
|
||||
const errcode =
|
||||
reportState.status === AsyncStatus.Error
|
||||
? (reportState.error as { errcode?: string })?.errcode
|
||||
: undefined;
|
||||
const errorMsg =
|
||||
errcode === 'M_LIMIT_EXCEEDED'
|
||||
? 'You are being rate limited. Please wait before reporting again.'
|
||||
@@ -113,7 +114,9 @@ export function ReportRoomModal({ roomId, onClose }: ReportRoomModalProps) {
|
||||
size="500"
|
||||
>
|
||||
<Box grow="Yes">
|
||||
<Text id="report-room-dialog-title" size="H4">Report Room</Text>
|
||||
<Text id="report-room-dialog-title" size="H4">
|
||||
Report Room
|
||||
</Text>
|
||||
</Box>
|
||||
<IconButton size="300" onClick={onClose} radii="300" aria-label="Close">
|
||||
<Icon src={Icons.Cross} />
|
||||
@@ -126,7 +129,9 @@ export function ReportRoomModal({ roomId, onClose }: ReportRoomModalProps) {
|
||||
</Text>
|
||||
|
||||
<Box direction="Column" gap="100">
|
||||
<Text as="label" htmlFor="report-category" size="L400">Category</Text>
|
||||
<Text as="label" htmlFor="report-category" size="L400">
|
||||
Category
|
||||
</Text>
|
||||
<Box
|
||||
as="select"
|
||||
id="report-category"
|
||||
@@ -155,7 +160,9 @@ export function ReportRoomModal({ roomId, onClose }: ReportRoomModalProps) {
|
||||
</Box>
|
||||
|
||||
<Box direction="Column" gap="100">
|
||||
<Text as="label" htmlFor="report-reason-input" size="L400">Reason</Text>
|
||||
<Text as="label" htmlFor="report-reason-input" size="L400">
|
||||
Reason
|
||||
</Text>
|
||||
<Input
|
||||
id="report-reason-input"
|
||||
name="reasonInput"
|
||||
|
||||
Reference in New Issue
Block a user