diff --git a/frontend/src/components/Chat.js b/frontend/src/components/Chat.js index 606f25df..9a1f6a66 100644 --- a/frontend/src/components/Chat.js +++ b/frontend/src/components/Chat.js @@ -58,18 +58,32 @@ export default class Chat extends Component { {this.state.messages.map(message => <> - {/* {message.userNick == this.props.data.urNick ? align='right' : align='left'} */} - + + {/* If message sender is not our nick, gray color, if it is our nick, green color */} + {message.userNick == this.props.data.urNick ? - } - title={message.userNick} - subheader={message.msg} - /> + avatar={ + + } + style={{backgroundColor: '#e8ffe6'}} + title={message.userNick} + subheader={message.msg} + /> + : + + } + style={{backgroundColor: '#fcfcfc'}} + title={message.userNick} + subheader={message.msg} + />} )} diff --git a/frontend/src/components/TradeBox.js b/frontend/src/components/TradeBox.js index 82f012f3..1720270a 100644 --- a/frontend/src/components/TradeBox.js +++ b/frontend/src/components/TradeBox.js @@ -55,17 +55,19 @@ export default class TradeBox extends Component { + - @@ -92,6 +94,7 @@ export default class TradeBox extends Component { + @@ -220,22 +223,24 @@ export default class TradeBox extends Component { valid invoice for {pn(this.props.data.invoiceAmount)} Satoshis. - - - - - - +
+ + + + + + +
{this.showBondIsLocked()} ) @@ -359,16 +364,17 @@ handleRatingChange=(e)=>{ Chatting with {this.props.data.isMaker ? this.props.data.takerNick : this.props.data.makerNick} - + {this.props.data.isSeller ? - - Say hi to your peer robot! Be helpful and concise. Let him know how to send you {this.props.data.currencyCode}. + + Say hi! Be helpful and concise. Let him know how to send you {this.props.data.currencyCode}. : - - Say hi to your peer robot! Ask for payment details and click 'Confirm {this.props.data.currencyCode} sent' as soon as you send the payment. + + Say hi! Ask for payment details and click "Confirm Sent" as soon as the payment is sent. } +