|
|
|
@ -9,6 +9,7 @@ interface Props {
|
|
|
|
|
onChange?: any;
|
|
|
|
|
onPressEnter?: any;
|
|
|
|
|
maxLength?: number;
|
|
|
|
|
isGroup?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class SessionIdEditable extends React.PureComponent<Props> {
|
|
|
|
@ -28,7 +29,7 @@ export class SessionIdEditable extends React.PureComponent<Props> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public render() {
|
|
|
|
|
const { placeholder, editable, text, value, maxLength } = this.props;
|
|
|
|
|
const { placeholder, editable, text, value, maxLength, isGroup } = this.props;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
@ -38,7 +39,8 @@ export class SessionIdEditable extends React.PureComponent<Props> {
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<textarea
|
|
|
|
|
className="session-id-editable-textarea"
|
|
|
|
|
className={classNames(
|
|
|
|
|
isGroup ? 'group-id-editable-textarea' : 'session-id-editable-textarea')}
|
|
|
|
|
ref={this.inputRef}
|
|
|
|
|
placeholder={placeholder}
|
|
|
|
|
disabled={!editable}
|
|
|
|
|