aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-21 11:36:11 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitd2b8ee34e4142886222568a3f6913c318c031457 (patch)
tree7ff596f9a60fec95a7300ef468088c77b703787b /vnext/src/index.js
parent7a7292c1dedd434352183ddd9fda5f808f1e0daa (diff)
Inital settings page
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 5bf7c021..492b569e 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom';
import Icon from './components/Icon';
import { Discover, Discussions, Blog, Tag, Home } from './components/Feeds';
+import Settings from './components/Settings';
import Post from './components/Post';
import Thread from './components/Thread';
import LoginButton from './components/LoginButton';
@@ -91,7 +92,7 @@ class App extends React.Component {
<div id="header_wrapper">
{this.state.visitor.uid > 0 ?
<div id="ctitle">
- { this.state.visitor.uname ? <Avatar user={this.state.visitor} /> : <Icon name="ei-spinner" size="m" /> }
+ {this.state.visitor.uname ? <Avatar user={this.state.visitor} /> : <Icon name="ei-spinner" size="m" />}
</div>
:
<div id="logo"><Link to="/">Juick</Link></div>
@@ -126,7 +127,12 @@ class App extends React.Component {
<Switch>
<Route exact path="/" render={(props) => <Discover visitor={this.state.visitor} {...props} />} />
<Route exact path="/home" render={(props) => <Home visitor={this.state.visitor} {...props} />} />
- <Route exact path="/discussions" render={(props) => <Discussions visitor={this.state.visitor} {...props} />} />
+ <Route exact path="/discussions" render={(props) =>
+ <Discussions visitor={this.state.visitor} {...props} />
+ } />
+ <Route exact path="/settings" render={(props) =>
+ <Settings visitor={this.state.visitor} {...props} />
+ } />
<Route exact path="/post" render={(props) => <Post visitor={this.state.visitor} {...props} />} />
<Route exact path="/:user" render={(props) => <Blog visitor={this.state.visitor} {...props} />} />
<Route exact path="/tag/:tag" render={(props) => <Tag visitor={this.state.visitor} {...props} />} />