Commit b993b274 authored by Eric Rosenbaum's avatar Eric Rosenbaum

Rename function and prop

parent c1e5b05a
......@@ -25,7 +25,7 @@ class Ideas extends React.Component {
bindAll(this, [
'handleShowTTTModal',
'handleHideTTTModal',
'renderTTTTiles'
'renderTiles'
]);
this.state = {
currentTile: Tiles[0],
......@@ -44,10 +44,10 @@ class Ideas extends React.Component {
TTTModalOpen: false
});
}
renderTTTTiles () {
renderTiles () {
return Tiles.map((tile, key) => {
const translatedTile = {
tutorialUrl: `/projects/editor/?tutorial=${tile.tutorialId}`,
tutorialUrl: `/projects/editor/?tutorial=${tile.tutorialUrl}`,
modalImage: tile.modalImage,
description: this.props.intl.formatMessage({id: tile.description}),
guideUrl: this.props.intl.formatMessage({id: tile.guideUrl}),
......@@ -123,7 +123,7 @@ class Ideas extends React.Component {
</p>
</div>
<MasonryGrid >
{this.renderTTTTiles()}
{this.renderTiles()}
</MasonryGrid>
<TTTModal
isOpen={this.state.TTTModalOpen}
......
......@@ -4,7 +4,7 @@
"description": "ideas.animateANameDescription",
"thumbImage": "/images/ideas/activities/animate-a-name-thumb.jpg",
"modalImage": "/images/ideas/activities/animate-a-name-modal.jpg",
"tutorialId": "name",
"tutorialUrl": "name",
"cardsUrl": "cards.nameCardsLink",
"guideUrl": "guides.nameGuideLink"
},
......@@ -13,7 +13,7 @@
"description": "ideas.animateACharacterDescription",
"thumbImage": "/images/ideas/activities/animate-a-character-thumb.jpg",
"modalImage": "/images/ideas/activities/animate-a-character-modal.jpg",
"tutorialId": "animate-a-character",
"tutorialUrl": "animate-a-character",
"cardsUrl": "cards.animateCardsLink",
"guideUrl": "guides.animateGuideLink"
},
......@@ -22,7 +22,7 @@
"description": "ideas.makeMusicDescription",
"thumbImage": "/images/ideas/activities/make-music-thumb.jpg",
"modalImage": "/images/ideas/activities/make-music-modal.jpg",
"tutorialId": "music",
"tutorialUrl": "music",
"cardsUrl": "cards.musicCardsLink",
"guideUrl": "guides.musicGuideLink"
},
......@@ -31,7 +31,7 @@
"description": "ideas.createAStoryDescription",
"thumbImage": "/images/ideas/activities/create-a-story-thumb.jpg",
"modalImage": "/images/ideas/activities/create-a-story-modal.jpg",
"tutorialId": "tell-a-story",
"tutorialUrl": "tell-a-story",
"cardsUrl": "cards.storyCardsLink",
"guideUrl": "guides.storyGuideLink"
},
......@@ -40,7 +40,7 @@
"description": "ideas.chaseGameDescription",
"thumbImage": "/images/ideas/activities/chase-game-thumb.jpg",
"modalImage": "/images/ideas/activities/chase-game-modal.jpg",
"tutorialId": "chase-game",
"tutorialUrl": "chase-game",
"cardsUrl": "cards.chaseCardsLink",
"guideUrl": "guides.chaseGuideLink"
},
......@@ -49,7 +49,7 @@
"description": "ideas.videoSensingDescription",
"thumbImage": "/images/ideas/activities/video-sensing-thumb.jpg",
"modalImage": "/images/ideas/activities/video-sensing-modal.jpg",
"tutorialId": "video-sensing",
"tutorialUrl": "video-sensing",
"cardsUrl": "cards.videoCardsLink",
"guideUrl": "guides.videoGuideLink"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment