0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 16:52:38 +00:00

renamed render warnings and now built into the brewrenderer

This commit is contained in:
Scott Tolksdorf
2017-01-14 14:20:42 -08:00
parent 6e86d9c123
commit 5fe7c7a6d8
5 changed files with 36 additions and 27 deletions

View File

@@ -5,6 +5,9 @@ const cx = require('classnames');
const Markdown = require('naturalcrit/markdown.js');
const ErrorBar = require('./errorBar/errorBar.jsx');
//TODO: move to the brew renderer
const RenderWarnings = require('homebrewery/renderWarnings/renderWarnings.jsx')
const PAGE_HEIGHT = 1056;
const PPR_THRESHOLD = 50;
@@ -132,6 +135,7 @@ const BrewRenderer = React.createClass({
style={{height : this.state.height}}>
<ErrorBar errors={this.props.errors} />
<RenderWarnings />
<div className='pages' ref='pages'>
{this.renderPages()}

View File

@@ -17,8 +17,6 @@ const BrewRenderer = require('../../brewRenderer/brewRenderer.jsx');
const Markdown = require('naturalcrit/markdown.js');
const Warnings = require('homebrewery/warnings/warnings.jsx')
const SAVE_TIMEOUT = 3000;
@@ -213,8 +211,6 @@ const EditPage = React.createClass({
return <div className='editPage page'>
{this.renderNavbar()}
<Warnings />
<div className='content'>
<SplitPane onDragFinish={this.handleSplitMove} ref='pane'>
<Editor