From 6d0553b83a67491ffa5396a5e3acd7b481892608 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Thu, 5 Jul 2018 18:37:34 +0300 Subject: [PATCH] Add warning for taken username when signing up, Fix scroll on post preview, Add progress-bar in profile view --- src/components/NavBar.js | 2 +- src/components/NewPost.js | 49 +++++++++++------------ src/components/Post.js | 8 ++-- src/containers/ProfileContainer.js | 11 +++++- src/containers/UsernameFormContainer.js | 52 ++++++++++++++++++++----- 5 files changed, 81 insertions(+), 41 deletions(-) diff --git a/src/components/NavBar.js b/src/components/NavBar.js index b7b50f2..05ec682 100644 --- a/src/components/NavBar.js +++ b/src/components/NavBar.js @@ -35,7 +35,7 @@ class NavBar extends Component { ? {this.handleItemClick("/profile")}}> Profile - : + : {this.handleItemClick("/signup")}}> Sign Up diff --git a/src/components/NewPost.js b/src/components/NewPost.js index 1945a8f..c96e123 100644 --- a/src/components/NewPost.js +++ b/src/components/NewPost.js @@ -104,28 +104,29 @@ class NewPost extends Component {
+
+ +
- {this.state.previewEnabled - ? - : [ - , -