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:
@@ -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),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user