Change to arrow function

This commit is contained in:
Klaus Klein 2017-04-05 11:23:05 -03:00
parent a140f7567a
commit 8095620fac

View File

@ -47,6 +47,8 @@ class MessageForm extends Component {
}
handleMessageKeyDown(e) {
//TODO Prevent send message pressing enter on mobile and/or virtual keyboard
if (e.keyCode === 13 && !e.shiftKey) {
e.preventDefault();
@ -125,7 +127,7 @@ class MessageForm extends Component {
label={intl.formatMessage(messages.submitLabel)}
hideLabel={true}
icon={"right_arrow"}
onClick={function(){}}
onClick={()=>{}}
/>
</form>
);