Turn off the accepted rules and fix the design tokens, alt text, and last type errors. [skip build]
This commit is contained in:
@@ -98,7 +98,7 @@ import {
|
||||
import { getMemberDisplayName, getMentionContent, trimReplyFromBody } from '../../utils/room';
|
||||
import { CommandAutocomplete } from './CommandAutocomplete';
|
||||
import { Command, SHRUG, TABLEFLIP, UNFLIP, useCommands } from '../../hooks/useCommands';
|
||||
import { pluginRegistry } from '../settings/plugins/PluginAPI';
|
||||
import { pluginRegistry, type CommandArg } from '../settings/plugins/PluginAPI';
|
||||
import { PluginButtonSlot } from '../settings/plugins/PluginButtonSlot';
|
||||
import { mobileOrTablet } from '../../utils/user-agent';
|
||||
import { ReplyLayout, ThreadIndicator } from '../../components/message';
|
||||
@@ -219,7 +219,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
const [commandHint, setCommandHint] = useState<{
|
||||
command: string;
|
||||
description: string;
|
||||
args?: string[];
|
||||
args?: string[] | CommandArg[];
|
||||
}>();
|
||||
|
||||
const sendTypingStatus = useTypingStatusUpdater(mx, roomId);
|
||||
@@ -733,7 +733,9 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
|
||||
{commandHint.args && commandHint.args.length > 0 && (
|
||||
<span style={{ opacity: 0.6 }}>
|
||||
{' '}
|
||||
{commandHint.args.map((arg) => `[${arg}]`).join(' ')}
|
||||
{commandHint.args
|
||||
.map((arg) => `[${typeof arg === 'string' ? arg : arg.name}]`)
|
||||
.join(' ')}
|
||||
</span>
|
||||
)}
|
||||
</Text>
|
||||
|
||||
Reference in New Issue
Block a user