0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 10:12:40 +00:00

Move most state over to common BaseEditPage

This commit is contained in:
Trevor Buckner
2025-08-20 16:29:29 -04:00
parent 7ca2123506
commit 91b6b9d91b
3 changed files with 15 additions and 27 deletions

View File

@@ -23,18 +23,6 @@ const HomePage = createClass({
brew : DEFAULT_BREW
};
},
getInitialState : function() {
return {
brew : this.props.brew,
isSaving : false,
welcomeText : this.props.brew.text,
error : undefined,
currentEditorViewPageNum : 1,
currentEditorCursorPageNum : 1,
currentBrewRendererPageNum : 1,
themeBundle : {}
};
},
editor : React.createRef(null),