aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/app.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-02 13:04:56 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit3338a0d36015752e94bd9009b75f47d92268a35f (patch)
tree3656a35f0d7e8b198e7b435dee4d59f2d2645929 /vnext/src/app.js
parentdfc34ed4c93247024090f1a9e4c78edc0bc990a2 (diff)
Post component
Diffstat (limited to 'vnext/src/app.js')
-rw-r--r--vnext/src/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/vnext/src/app.js b/vnext/src/app.js
index fed735f7..1991a14d 100644
--- a/vnext/src/app.js
+++ b/vnext/src/app.js
@@ -5,6 +5,7 @@ const history = createHistory();
import Navigation from "./components/Navigation"
import Discover from "./components/Discover"
+import Post from "./components/Post"
class App extends React.Component {
constructor(props) {
@@ -18,7 +19,10 @@ class App extends React.Component {
return (
<div className="wrapper">
<Navigation onNavigate={this.navigate} />
- <Discover params={this.state.location.search} />
+ { location.pathname === "/" &&
+ <Discover params={this.state.location.search} /> }
+ { location.pathname === "/post" &&
+ <Post /> }
</div>
)
}