Skip to content

Commit

Permalink
Second level structure implementation with mock JSON file to start off.
Browse files Browse the repository at this point in the history
  • Loading branch information
jruzekowicz committed Jul 19, 2021
1 parent d48bba1 commit 2d6351e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions www/components/itinerum_tutorial/Tutorial.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
*/
class TutorialComponent extends React.Component {
propTypes: {
surveyState: React.PropTypes.object,
isValid: React.PropTypes.bool,
result: React.PropTypes.object,
schema: React.PropTypes.object
}
render() {
return(
<div className="content-wrapper">
<div>
This is the first name -> {this.props.surveyState.schema.fname}
This is the last name -> {this.props.surveyState.schema.lname}
First Name -> {this.props.schema.fname}
Last Name -> {this.props.schema.lname}
</div>
<div className="row">
{/* bootstrap grid as margin */}
Expand Down
2 changes: 1 addition & 1 deletion www/templates/intro/survey.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ion-content class="has-footer">
<tutorial surveyState="surveyState"/>
<tutorial isValid="surveyState.isValid" result="surveyState.result" schema="surveyState.schema"/>
</ion-content>
<ion-footer-bar class="no-bgColor" id="intro-footer">
<button class="button button-block button-outline button-positive" ng-click="next()">
Expand Down

0 comments on commit 2d6351e

Please sign in to comment.