From 0882db553c80afbca4a8805a372a8b1095cba12c Mon Sep 17 00:00:00 2001 From: Lavhe Date: Thu, 11 Jan 2018 10:43:45 +0200 Subject: [PATCH 1/8] Added axios to make api calls --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6440eba..6a4f4fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2666,7 +2666,7 @@ "es6-error": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==" + "integrity": "sha1-njr0B0Wd7tR+mpH5uIWoTrBcVh0=" }, "es6-iterator": { "version": "2.0.3", @@ -8293,7 +8293,7 @@ "react-material-ui-form-validator": { "version": "2.0.0-beta.3", "resolved": "https://registry.npmjs.org/react-material-ui-form-validator/-/react-material-ui-form-validator-2.0.0-beta.3.tgz", - "integrity": "sha512-qEvzfH63b5mGIJN4KDww2jbqEu3KM1yInL9ZL54nmpn68S0ClpbjtZp4YNwHos24AajV4ABolDebL1HmbGbkPA==" + "integrity": "sha1-S+x23BQoW08dg1tjuAQnUrWJV0c=" }, "react-redux": { "version": "5.0.6", @@ -8595,7 +8595,7 @@ "redux-form": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/redux-form/-/redux-form-7.2.0.tgz", - "integrity": "sha512-qbgeI19drwnm9FeGAotDA1vsZO8q94XF7IxPDuJmSXxDYX2rqzhND6NROahCBJfBK5xM1cchvmgscO2rry1EEw==", + "integrity": "sha1-RGXZvIY+QLFwRpXWcr6nX8+B2wQ=", "requires": { "deep-equal": "1.0.1", "es6-error": "4.1.1", From 187be9cbac1fb9df1155806d58bb700a2c9d7529 Mon Sep 17 00:00:00 2001 From: Lavhe Date: Thu, 11 Jan 2018 13:24:05 +0200 Subject: [PATCH 2/8] Added popover to start a new chat --- src/components/accountScreen/accountScreen.js | 7 ++- src/components/headerNav/headerNav.js | 47 ++++++++++++++++++- src/reducers/Account.js | 14 ++++++ 3 files changed, 64 insertions(+), 4 deletions(-) diff --git a/src/components/accountScreen/accountScreen.js b/src/components/accountScreen/accountScreen.js index ee4f85d..4476a75 100644 --- a/src/components/accountScreen/accountScreen.js +++ b/src/components/accountScreen/accountScreen.js @@ -7,6 +7,8 @@ import HeaderNav from '../headerNav/headerNav'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; +import FlatButton from 'material-ui/FlatButton/FlatButton'; + import { getUser, changeUser, @@ -65,8 +67,6 @@ const cardTextStyle = { const searchBarStyle = { borderRadius: '21.5px', - height: '43px', - width: '345px', height: '6vh', width: '19vw', border: '1px solid #979797', @@ -249,6 +249,9 @@ class AccountScreen extends Component { onChange={text => this.filterList(text)} /> +
+ Start a new chat +