From 86fb847be01149a15d3d9bc8ba26f2f461fa70d6 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Wed, 27 May 2015 18:48:25 -0400 Subject: [PATCH] remove 'Data' suffix from state keys too. --- pages/home.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/home.jsx b/pages/home.jsx index 77be79f30..425fd3c64 100644 --- a/pages/home.jsx +++ b/pages/home.jsx @@ -94,14 +94,14 @@ var BlogSection = React.createClass({ }, getInitialState: function() { return { - featuredPostData: { + featuredPost: { title: "", author: "", publishedDate: "", contentSnippet: "", link: "" }, - latestPostsData: [] + latestPosts: [] } }, componentDidMount: function() { @@ -110,8 +110,8 @@ var BlogSection = React.createClass({ return; } this.setState({ - featuredPostData: data.featuredPosts, - latestPostsData: data.latestPosts + featuredPost: data.featuredPosts, + latestPosts: data.latestPosts }); }.bind(this)); }, @@ -125,10 +125,10 @@ var BlogSection = React.createClass({
- +
- + See all blog posts