Merge importPage functions into newPage.

This commit is contained in:
G.Ambatte authored and Trevor Buckner committed 2021-03-04 22:01:11 -05:00
1 parent ed23578dcf
commit 2f9bd00d70
5 files changed
+24 -221

No files matched your search

+21 -1
View File
@@ -20,10 +20,30 @@ const BrewRenderer = require('../../brewRenderer/brewRenderer.jsx');
const KEY = 'homebrewery-new';
const NewPage = createClass({
getDefaultProps : function() {
return {
brew : {
text : '',
shareId : null,
editId : null,
createdAt : null,
updatedAt : null,
gDrive : false,
title : '',
description : '',
tags : '',
published : false,
authors : [],
systems : []
}
};
},
getInitialState : function() {
return {
brew : {
text : '',
text : this.props.brew.text,
gDrive : false,
title : '',
description : '',