From bec5843fd6059fe25dcdc3e91352882aa1caa4d8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 28 Jun 2018 17:01:56 +0300 Subject: cleanup class names --- vnext/src/components/Chat.js | 4 ++-- vnext/src/components/Contacts.js | 22 ++++++++++++---------- vnext/src/components/Feeds.js | 4 ++-- vnext/src/components/PM.js | 12 ++++++------ vnext/src/components/Post.js | 10 ++++++---- 5 files changed, 28 insertions(+), 24 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/components/Chat.js b/vnext/src/components/Chat.js index fa187f42..e7beef35 100644 --- a/vnext/src/components/Chat.js +++ b/vnext/src/components/Chat.js @@ -44,8 +44,8 @@ export default class Chat extends React.Component { const { chats } = this.state; const uname = this.props.match.params.user; return ( -
-
+
+
{uname ? (
diff --git a/vnext/src/components/Contacts.js b/vnext/src/components/Contacts.js index aea537d4..509db3b3 100644 --- a/vnext/src/components/Contacts.js +++ b/vnext/src/components/Contacts.js @@ -28,16 +28,18 @@ export default class Contacts extends React.Component { const { pms } = this.state; const user = this.props.visitor; return ( -
-
    - { - pms && pms.map((chat) => -
  • - -
  • - ) - } -
+
+
+
    + { + pms && pms.map((chat) => +
  • + +
  • + ) + } +
+
); } diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index 997ac642..821a93f7 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -129,8 +129,8 @@ class Feed extends React.Component { ); return this.state.msgs.length > 0 ? ( -
{nodes}
- ) : this.state.error ?
error
: this.state.loading ?
:
No more messages
; +
{nodes}
+ ) : this.state.error ?
error
: this.state.loading ?
:
No more messages
; } } diff --git a/vnext/src/components/PM.js b/vnext/src/components/PM.js index 44b81129..1833f3a3 100644 --- a/vnext/src/components/PM.js +++ b/vnext/src/components/PM.js @@ -4,13 +4,13 @@ import Avatar from './Avatar'; import { format } from '../utils/embed'; export default function PM(props) { - const {chat} = props; + const { chat } = props; return ( -
  • - -

    -

  • - ); +
  • + +

    +

  • + ); } const chatItemStyle = { diff --git a/vnext/src/components/Post.js b/vnext/src/components/Post.js index 7bde7432..e8ebab5c 100644 --- a/vnext/src/components/Post.js +++ b/vnext/src/components/Post.js @@ -40,11 +40,13 @@ export default class Post extends React.Component { } render() { return ( -
    - - *weather It's very cold today! +
    +
    + + *weather It's very cold today! -
    +
    +
    ); } } -- cgit v1.2.3