0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 03:52:42 +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

@@ -31,21 +31,6 @@ const NewPage = createClass({
};
},
getInitialState : function() {
const brew = this.props.brew;
return {
brew : brew,
isSaving : false,
saveGoogle : (global.account && global.account.googleId ? true : false),
error : null,
htmlErrors : Markdown.validate(brew.text),
currentEditorViewPageNum : 1,
currentEditorCursorPageNum : 1,
currentBrewRendererPageNum : 1,
themeBundle : {}
};
},
editor : React.createRef(null),