From 1068ba623d2f8b6f7e89f5a4db2c9a54f20a26f0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 28 Aug 2018 16:06:30 +0300 Subject: React.Fragment short syntax (requires babel 7) --- vnext/src/App.js | 8 ++++---- vnext/src/components/Contact.js | 4 ++-- vnext/src/components/Feeds.js | 4 ++-- vnext/src/components/LoginButton.js | 4 ++-- vnext/src/components/Message.js | 4 ++-- vnext/src/components/Settings.js | 4 ++-- vnext/src/components/Thread.js | 24 ++++++++++++------------ 7 files changed, 26 insertions(+), 26 deletions(-) (limited to 'vnext') diff --git a/vnext/src/App.js b/vnext/src/App.js index 3ca7e0bf..955c1200 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -105,7 +105,7 @@ export default class App extends React.Component { const user = this.state.visitor; return ( - + <>
{user.uid > 0 ? @@ -169,7 +169,7 @@ export default class App extends React.Component {
} - + } - + ); } diff --git a/vnext/src/components/Contact.js b/vnext/src/components/Contact.js index 215f579b..1a45c053 100644 --- a/vnext/src/components/Contact.js +++ b/vnext/src/components/Contact.js @@ -8,10 +8,10 @@ export default class Contact extends React.Component { render() { const { user } = this.props; return ( - + <> {user.uname }{ user.unreadCount && {user.unreadCount}} - + ); } } diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index 89eb7774..194af71c 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -122,7 +122,7 @@ class Feed extends React.Component { render() { const { tag } = qs.parse(this.props.location.search || {}); const nodes = ( - + <> { tag && (

@@ -143,7 +143,7 @@ class Feed extends React.Component {

) } -
+ ); return this.state.msgs.length > 0 ? (
{nodes}
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js index e6c079f6..5bc58ef6 100644 --- a/vnext/src/components/LoginButton.js +++ b/vnext/src/components/LoginButton.js @@ -46,7 +46,7 @@ export default class LoginButton extends React.Component { render() { return ( - + <> {this.props.title} @@ -76,7 +76,7 @@ export default class LoginButton extends React.Component { - + ); } } diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index ad79f7f6..f091296b 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -64,7 +64,7 @@ export default function Message({ data, visitor, children, ...rest }) { )} {!data.ReadOnly | (visitor.uid === data.user.uid) && ( - + <> @@ -82,7 +82,7 @@ export default function Message({ data, visitor, children, ...rest }) {  Share - + )} {data.FriendsOnly && ( Открыть доступ diff --git a/vnext/src/components/Settings.js b/vnext/src/components/Settings.js index 2f03671f..44f02902 100644 --- a/vnext/src/components/Settings.js +++ b/vnext/src/components/Settings.js @@ -161,7 +161,7 @@ export default class Settings extends React.Component { { me.emails && - + <> {/** email_off **/}
You can receive notifications to email:
@@ -179,7 +179,7 @@ export default class Settings extends React.Component { {/** /email_off **/}

 

You can post to Juick via e-mail. Send your plain text messages to juick@juick.com. You can attach one photo or video file.

- + }
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index b426581d..23654d86 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -79,7 +79,7 @@ export default class Thread extends React.Component { const msg = this.state.msg; const loaders = Math.min(msg.replies || 0, 10); return ( - + <>
  • { @@ -101,14 +101,14 @@ export default class Thread extends React.Component {
    {!msg.user.banned ? ( - + <> - ) : ( - + ) : ( + <> [удалено]: - + ) }
    @@ -134,27 +134,27 @@ export default class Thread extends React.Component {
    { this.props.visitor.uid > 0 ? ( - + <> {this.state.active === msg.rid || this.setActive(msg)}>Reply} {this.state.active === msg.rid && Write a comment...} - + ) : ( - + <>  · {this.state.active === msg.rid || } - + ) }
  • )) : ( - + <> {Array(loaders).fill().map((it, i) => )} - + ) }
-
+ ); } } -- cgit v1.2.3