Skip to content

Commit dbe8989

Browse files
committed
first goal achieved
1 parent b756f97 commit dbe8989

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

data/data-contact.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title" : "Contact",
3-
"text" : "I'll find you"
3+
"text": "I'll find you."
44
}

data/data-developer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"title" : "Developer",
3-
"text" : "Hello, i am your developer!"
3+
"text": "Hello, I am your developer!"
44
}

js/app-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var appData = {
22
year: new Date().getFullYear(),
3-
version: "0.13",
3+
version: "0.14",
44

55
pageNav: [
66
{id: 1, title: "About Me", link: "data/data-home.json"},

js/main.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ var SiteNavItem = React.createClass({
3030
return {isSelected: false};
3131
},
3232
handleClick: function (link) {
33-
console.log(link);
3433
this.props.onHandleSelection(link);
3534
},
3635
render: function () {
@@ -59,8 +58,8 @@ var Content = React.createClass({
5958
});
6059

6160
var AboutMe = React.createClass({
61+
6262
handleNav: function (link) {
63-
console.log("on nav");
6463
this.requestData(link.link);
6564
},
6665

@@ -81,10 +80,15 @@ var AboutMe = React.createClass({
8180
getInitialState: function () {
8281
return ({
8382
title: this.props.data.title,
84-
text: this.props.data.name
83+
text: this.props.data.names
8584
});
8685
},
8786

87+
componentDidMount: function () {
88+
var homeUrl = this.props.data.pageNav[0].link;
89+
this.requestData(homeUrl);
90+
},
91+
8892
render: function () {
8993
return (
9094
<div className="container">

0 commit comments

Comments
 (0)