aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Feeds.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 01:57:22 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit91faf0911184bb430170d021195d008b977e0ac4 (patch)
treed1522c0c9e1d80814c032bd586c06bbd55ef7843 /vnext/src/components/Feeds.js
parentf62afd8a08d6e5dfdba7eb62d54655bc634e211c (diff)
Fix lint and prototypes warnings
Diffstat (limited to 'vnext/src/components/Feeds.js')
-rw-r--r--vnext/src/components/Feeds.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 626732f6..80e9071b 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -16,7 +16,7 @@ export function Discover(props) {
baseUrl: '/messages',
pageParam: 'before_mid'
};
- return (<Feed query={query} {...props} />)
+ return (<Feed authRequired={false} query={query} {...props} />)
}
export function Discussions(props) {
@@ -24,7 +24,7 @@ export function Discussions(props) {
baseUrl: '/messages/discussions',
pageParam: 'to'
};
- return (<Feed authRequired="true" query={query} {...props} />)
+ return (<Feed authRequired={true} query={query} {...props} />)
}
export function Blog(props) {
@@ -36,7 +36,7 @@ export function Blog(props) {
},
pageParam: 'before_mid'
};
- return (<Feed query={query} {...props} />)
+ return (<Feed authRequired={false} query={query} {...props} />)
}
export function Tag(props) {
@@ -48,7 +48,7 @@ export function Tag(props) {
},
pageParam: 'before_mid'
};
- return (<Feed query={query} {...props} />)
+ return (<Feed authRequired={false} query={query} {...props} />)
}
export function Home(props) {
@@ -56,7 +56,7 @@ export function Home(props) {
baseUrl: '/home',
pageParam: 'before_mid'
};
- return (<Feed authRequired="true" query={query} {...props} />)
+ return (<Feed authRequired={true} query={query} {...props} />)
}
class Feed extends React.Component {
@@ -90,7 +90,7 @@ class Feed extends React.Component {
params.hash = hash;
}
if (!params.hash && this.props.authRequired) {
- this.props.history.push('/')
+ this.props.history.push('/');
}
getMessages(url, params)
.then(response => {