0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 15:12:39 +00:00
Files
homebrewery/client/homebrew/pages/editPage/editPage.jsx
2021-11-04 14:03:57 +13:00

48 lines
1.1 KiB
JavaScript

/* eslint-disable max-lines */
require('./editPage.less');
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const EditorPage = require('../basePages/editorPage/editorPage.jsx');
const EditPage = createClass({
getDefaultProps : function() {
return {
brew : {
text : '',
style : '',
shareId : null,
editId : null,
createdAt : null,
updatedAt : null,
gDrive : false,
trashed : false,
title : '',
description : '',
tags : '',
published : false,
authors : [],
systems : [],
renderer : 'legacy'
}
};
},
render : function(){
const googleDriveOptions = [
'Would you like to transfer this brew from your Google Drive storage back to the Homebrewery?',
'Would you like to transfer this brew from the Homebrewery to your personal Google Drive storage?'
];
return <EditorPage
pageType='edit'
brew={this.props.brew}
googleDriveOptions = {googleDriveOptions}
></EditorPage>;
}
});
module.exports = EditPage;