URL dependent labeling of the toolbar
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import { withRouter } from 'react-router-dom';
|
||||
|
||||
class Tutorial extends Component {
|
||||
render() {
|
||||
console.log(this.props);
|
||||
return (
|
||||
<h1>Tutorial {this.props.match.params.tutorialId}</h1>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default withRouter(Tutorial);
|
||||
@@ -0,0 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
|
||||
class TutorialHome extends Component {
|
||||
render() {
|
||||
return (
|
||||
<h1>Tutorial Home</h1>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export default TutorialHome;
|
||||
Reference in New Issue
Block a user