diff options
author | Vitaly Takmazov | 2018-09-10 13:26:19 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 4b18d7910cd01519f15a3dbdb2d1a74e334f22dc (patch) | |
tree | 896ee31888f2ab756762b484030fb2bfc9ccf33a /vnext | |
parent | 69e977c4f07b0e3933e9f9588d2b3e15c9c73b94 (diff) |
Discussions as main page
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/src/App.js | 10 | ||||
-rw-r--r-- | vnext/src/components/Feeds.js | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js index 71dc3926..2601ef45 100644 --- a/vnext/src/App.js +++ b/vnext/src/App.js @@ -122,7 +122,7 @@ export default class App extends React.Component { <ul> {user.uid > 0 ? <li> - <Link to={{ pathname: '/discussions' }}> + <Link to={{ pathname: '/' }}> <Icon name="ei-comment" size="s" /><span>Discuss</span> { user.unreadCount && @@ -133,7 +133,7 @@ export default class App extends React.Component { : <li><Link to='/?media=1' rel="nofollow"><Icon name="ei-camera" size="s" />Photos</Link></li> } - <li><Link to={{ pathname: '/' }} rel="nofollow"><Icon name="ei-search" size="s" />Discover</Link></li> + <li><Link to={{ pathname: '/discover' }} rel="nofollow"><Icon name="ei-search" size="s" />Discover</Link></li> <li> {user.uid > 0 ? <Link to={{ pathname: '/post' }}><Icon name="ei-pencil" size="s" />Post</Link> @@ -148,10 +148,10 @@ export default class App extends React.Component { <div id="wrapper"> <section id="content"> <Switch> - <Route exact path="/" render={(props) => <Discover visitor={user} {...props} />} /> + <Route exact path="/" render={(props) => <Discussions visitor={user} {...props} />} /> <Route exact path="/home" render={(props) => <Home visitor={user} {...props} />} /> - <Route exact path="/discussions" render={(props) => - <Discussions visitor={user} {...props} /> + <Route exact path="/discover" render={(props) => + <Discover visitor={user} {...props} /> } /> <Route exact path="/settings" render={(props) => <Settings visitor={user} {...props} /> diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index a7833f67..a09cfab2 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -28,7 +28,7 @@ export function Discussions(props) { baseUrl: '/messages/discussions', pageParam: 'to' }; - return (<Feed authRequired={true} query={query} {...props} />); + return (<Feed authRequired={false} query={query} {...props} />); } export function Blog(props) { |