0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 05:02:42 +00:00

Merge importPage functions into newPage.

This commit is contained in:
G.Ambatte
2021-03-02 20:30:11 +13:00
committed by Trevor Buckner
parent ed23578dcf
commit 2f9bd00d70
5 changed files with 24 additions and 221 deletions

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 : '',