Implement profile dialog

This commit is contained in:
2025-10-18 13:32:04 +03:00
Unverified
parent a92f91d791
commit b5b5547927
18 changed files with 735 additions and 590 deletions
@@ -10,6 +10,7 @@ interface RichTextAreaProps {
className?: string;
rows?: number;
autoComplete?: string;
readOnly?: boolean;
}
export function RichTextArea({
@@ -21,6 +22,7 @@ export function RichTextArea({
className,
rows = 1,
autoComplete = "off",
readOnly = false
}: RichTextAreaProps) {
const textareaRef = useRef<HTMLTextAreaElement | null>(null);
const hiddenTextareaRef = useRef<HTMLTextAreaElement | null>(null);
@@ -183,10 +185,10 @@ export function RichTextArea({
value={text}
placeholder={placeholder}
rows={rows}
autoComplete={autoComplete}
onChange={handleChange}
onKeyDown={handleKeyDown}
/>
autoComplete={readOnly ? "off" : autoComplete}
onChange={readOnly ? undefined : handleChange}
onKeyDown={readOnly ? undefined : handleKeyDown}
readOnly={readOnly} />
<textarea
aria-hidden
readOnly