From 41e16137a9f3cbeb5426e012e27208aac9457107 Mon Sep 17 00:00:00 2001 From: Julian Steinwachs Date: Sat, 23 Jan 2016 14:36:13 +0100 Subject: [PATCH] upgrade to react-router 2.0 WIP 2 --- jsx/profile/Profile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jsx/profile/Profile.js b/jsx/profile/Profile.js index 248482a..ef02f79 100755 --- a/jsx/profile/Profile.js +++ b/jsx/profile/Profile.js @@ -31,9 +31,9 @@ module.exports = Post = React.createClass({ ], render: function() { - var routeprefix = "#/profile/"+(this.context.router.getCurrentParams().username ? this.context.router.getCurrentParams().username+"/" : "") + var routeprefix = "#/profile/"+(this.props.params.username ? this.props.params.username+"/" : "") - var subroute = this.context.router.getCurrentRoutes()[2].name + //var subroute = this.context.router.getCurrentRoutes()[2].name //console.log(this.context.router.getCurrentRoutes()); @@ -70,9 +70,9 @@ module.exports = Post = React.createClass({ - - - + + + {this.props.children && React.cloneElement(this.props.children, {