0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-21 02:52:43 +00:00

Updated the welcome text

This commit is contained in:
Scott Tolksdorf
2016-01-11 17:00:21 -05:00
parent 9bc2eb70b2
commit 793eb86c39
10 changed files with 146 additions and 27 deletions

View File

@@ -6,23 +6,30 @@ var Statusbar = require('../statusbar/statusbar.jsx');
var PHB = require('../phb/phb.jsx');
var Editor = require('../editor/editor.jsx');
var WelcomeText = require('./welcomeMessage.js');
var KEY = 'naturalCrit-homebrew';
var HomePage = React.createClass({
getInitialState: function() {
return {
text: "# Welcome \n Oh god, what to put here. *Instructions* I guess?."
text: WelcomeText
};
},
componentDidMount: function() {
/*
var storage = localStorage.getItem(KEY);
if(storage){
this.setState({
text : storage
})
}
*/
},
handleTextChange : function(text){
@@ -30,7 +37,7 @@ var HomePage = React.createClass({
text : text
});
localStorage.setItem(KEY, text);
//localStorage.setItem(KEY, text);
},
render : function(){