|
|
@ -1,5 +1,6 @@ |
|
|
|
import React, { Component } from 'react'; |
|
|
|
import React, { Component } from 'react'; |
|
|
|
import ArrowRightAltIcon from '@material-ui/icons/ArrowRightAlt'; |
|
|
|
import ArrowRightAltIcon from '@material-ui/icons/ArrowRightAlt'; |
|
|
|
|
|
|
|
import Avatar from '@material-ui/core/Avatar'; |
|
|
|
|
|
|
|
|
|
|
|
export default class RadioMessage extends Component { |
|
|
|
export default class RadioMessage extends Component { |
|
|
|
constructor(props) { |
|
|
|
constructor(props) { |
|
|
@ -25,11 +26,22 @@ export default class RadioMessage extends Component { |
|
|
|
marginLeft: isSelf ? 40 : 0, |
|
|
|
marginLeft: isSelf ? 40 : 0, |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
<img |
|
|
|
<Avatar |
|
|
|
|
|
|
|
alt={user.name} |
|
|
|
|
|
|
|
src={window.baseURL + '/file/download/' + user.fileId} |
|
|
|
|
|
|
|
className="" |
|
|
|
|
|
|
|
style={{ backgroundColor: user.color }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{user.name |
|
|
|
|
|
|
|
.split(' ') |
|
|
|
|
|
|
|
.map((e) => e.slice(0, 1)) |
|
|
|
|
|
|
|
.join(' ')} |
|
|
|
|
|
|
|
</Avatar> |
|
|
|
|
|
|
|
{/* <img |
|
|
|
src={window.baseURL + '/file/download/' + user.fileId} |
|
|
|
src={window.baseURL + '/file/download/' + user.fileId} |
|
|
|
style={{ alignSelf: isSelf ? 'flex-end' : 'flex-start' }} |
|
|
|
style={{ alignSelf: isSelf ? 'flex-end' : 'flex-start' }} |
|
|
|
alt={message.id} |
|
|
|
alt={message.id} |
|
|
|
/> |
|
|
|
/> */} |
|
|
|
<div className="message-2d__text d-flex"> |
|
|
|
<div className="message-2d__text d-flex"> |
|
|
|
{message.text !== null ? ( |
|
|
|
{message.text !== null ? ( |
|
|
|
<p id="3" style={{ color: isSelf ? 'white' : 'black' }}> |
|
|
|
<p id="3" style={{ color: isSelf ? 'white' : 'black' }}> |
|
|
@ -56,16 +68,16 @@ const Row = (props) => { |
|
|
|
<div |
|
|
|
<div |
|
|
|
onClick={() => this.handleRadioChange(item.name)} |
|
|
|
onClick={() => this.handleRadioChange(item.name)} |
|
|
|
className="message-2d__options--row d-flex" |
|
|
|
className="message-2d__options--row d-flex" |
|
|
|
style={{ |
|
|
|
style={ |
|
|
|
|
|
|
|
{ |
|
|
|
// backgroundColor: item.name === this.state.value ? '#0000cc' : 'rgba(153, 153, 153, 0.87)',
|
|
|
|
// backgroundColor: item.name === this.state.value ? '#0000cc' : 'rgba(153, 153, 153, 0.87)',
|
|
|
|
// color: item.name === this.state.value ? 'white' : 'black',
|
|
|
|
// color: item.name === this.state.value ? 'white' : 'black',
|
|
|
|
}} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
> |
|
|
|
> |
|
|
|
{ |
|
|
|
{props.list.map((item) => ( |
|
|
|
props.list.map((item) => ( |
|
|
|
|
|
|
|
<Item item={item} /> |
|
|
|
<Item item={item} /> |
|
|
|
))
|
|
|
|
))} |
|
|
|
} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|