diff --git a/frontend/src/components/Chat.js b/frontend/src/components/Chat.js index 00e53a8f..7f99c31b 100644 --- a/frontend/src/components/Chat.js +++ b/frontend/src/components/Chat.js @@ -84,87 +84,88 @@ class Chat extends Component { const { t } = this.props; return ( - - - - - - {t("You")+": "}{this.state.connected ? t("connected"): t("disconnected")} - - - - - - - - {t("Peer")+": "}{this.state.peer_connected ? t("connected"): t("disconnected")} - - - - - - - {this.state.messages.map(message => <> - - {/* If message sender is not our nick, gray color, if it is our nick, green color */} - {message.userNick == this.props.ur_nick ? - - - - } - style={{backgroundColor: '#eeeeee'}} - title={message.userNick} - subheader={message.msg} - subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '200px', color: '#444444'}}} - /> - : - - - - } - style={{backgroundColor: '#fafafa'}} - title={message.userNick} - subheader={message.msg} - subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '200px', color: '#444444'}}} - />} - - )} -
{ this.messagesEnd = el; }}>
+ + + + + + {t("You")+": "}{this.state.connected ? t("connected"): t("disconnected")} + -
- - - { - this.setState({ value: e.target.value }); - this.value = this.state.value; - }} - sx={{width: 214}} - /> - - - - - -
- - {t("The chat has no memory: if you leave, messages are lost.")} {t("Learn easy PGP encryption.")} - +
+ + + + + {t("Peer")+": "}{this.state.peer_connected ? t("connected"): t("disconnected")} + + + + + + + {this.state.messages.map((message, index) => +
  • + + {/* If message sender is not our nick, gray color, if it is our nick, green color */} + {message.userNick == this.props.ur_nick ? + + + + } + style={{backgroundColor: '#eeeeee'}} + title={message.userNick} + subheader={message.msg} + subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '200px', color: '#444444'}}} + /> + : + + + + } + style={{backgroundColor: '#fafafa'}} + title={message.userNick} + subheader={message.msg} + subheaderTypographyProps={{sx: {wordWrap: "break-word", width: '200px', color: '#444444'}}} + />} + +
  • )} +
    { this.messagesEnd = el; }}>
    +
    +
    + + + { + this.setState({ value: e.target.value }); + this.value = this.state.value; + }} + sx={{width: 214}} + /> + + + + + +
    + + {t("The chat has no memory: if you leave, messages are lost.")} {t("Learn easy PGP encryption.")} +
    ) } diff --git a/frontend/src/components/OrderPage.js b/frontend/src/components/OrderPage.js index db35efdd..f610f315 100644 --- a/frontend/src/components/OrderPage.js +++ b/frontend/src/components/OrderPage.js @@ -36,6 +36,7 @@ class OrderPage extends Component { openCancel: false, openCollaborativeCancel: false, openInactiveMaker: false, + openStoreToken: false, tabValue: 1, orderId: this.props.match.params.orderId, }; @@ -180,8 +181,8 @@ class OrderPage extends Component { if(this.state.has_range){ return( - - + {this.InactiveMakerDialog()} + {this.StoreTokenDialog()}
    @@ -226,8 +227,8 @@ class OrderPage extends Component { }else{ return( <> - - + {this.InactiveMakerDialog()} + {this.StoreTokenDialog()}