mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-17 14:18:46 +00:00
pass in page title, fit in mobile
This commit is contained in:
+2
-1
@@ -39,6 +39,7 @@ const EditorPage = (props)=>{
|
||||
save,
|
||||
onSaveSuccess,
|
||||
pageName,
|
||||
pageTitle,
|
||||
showEditorButtons,
|
||||
userThemes = {}
|
||||
} = props;
|
||||
@@ -375,7 +376,7 @@ const EditorPage = (props)=>{
|
||||
<div className= {`${pageName} sitePage`}>
|
||||
<Meta name='google-site-verification' content='NwnAQSSJZzAT7N-p5MY6ydQ7Njm67dtbu73ZSyE5Fy4' />
|
||||
{(pageName == 'editPage') && <Meta name='robots' content='noindex, nofollow' />}
|
||||
<Navbar brew={currentBrew} editor={editorRef.current} pageName={pageName} account={global.account} currentPage={currentBrewRendererPageNum}>
|
||||
<Navbar brew={currentBrew} editor={editorRef.current} pageName={pageName} title={pageTitle} account={global.account} currentPage={currentBrewRendererPageNum}>
|
||||
<Navbar.File>
|
||||
<Nav.item
|
||||
className='save'
|
||||
@@ -8,7 +8,7 @@ const UIPage = createReactClass({
|
||||
|
||||
render : function(){
|
||||
return <div className='uiPage sitePage'>
|
||||
<Navbar pageName={this.props.pageName} />
|
||||
<Navbar pageName={this.props.pageName} title={this.props.title} />
|
||||
<div className='content'>
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import _ from 'lodash';
|
||||
import EditorPage from '../basePages/editPage/editorPage.jsx';
|
||||
import EditorPage from '../basePages/editorPage/editorPage.jsx';
|
||||
import { DEFAULT_BREW_LOAD } from '../../../../server/brewDefaults.js';
|
||||
|
||||
// Page specific imports
|
||||
@@ -49,6 +49,7 @@ const EditPage = (props)=>{
|
||||
showFloatingButtons = {false}
|
||||
showEditorButtons = {true}
|
||||
pageName = {'editPage'}
|
||||
pageTitle = {props.brew.title}
|
||||
brew = {props.brew}
|
||||
userThemes = {props.userThemes}
|
||||
save = {save}
|
||||
|
||||
@@ -9,7 +9,7 @@ const ErrorPage = ({ brew })=>{
|
||||
const errorText = ErrorIndex({ brew })[brew.HBErrorCode.toString()] || '';
|
||||
|
||||
return (
|
||||
<UIPage brew={{ title: 'Crit Fail!' }} pageName='errorPage'>
|
||||
<UIPage brew={{ title: 'Crit Fail!' }} pageName='errorPage' title={`Error ${brew?.status || '000'}`}>
|
||||
<div className='dataGroup'>
|
||||
<div className='errorTitle'>
|
||||
<h1>{`Error ${brew?.status || '000'}`}</h1>
|
||||
|
||||
@@ -3,7 +3,7 @@ import './homePage.less';
|
||||
import React from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import _ from 'lodash';
|
||||
import EditorPage from '../basePages/editPage/editorPage.jsx';
|
||||
import EditorPage from '../basePages/editorPage/editorPage.jsx';
|
||||
import { DEFAULT_BREW } from '../../../../server/brewDefaults.js';
|
||||
|
||||
const HomePage =(props)=>{
|
||||
@@ -32,6 +32,7 @@ const HomePage =(props)=>{
|
||||
showFloatingButtons = {true}
|
||||
showEditorButtons = {false}
|
||||
pageName = {'homePage'}
|
||||
pageTitle = {'The Homebrewery'}
|
||||
brew = {props.brew}
|
||||
userThemes = {{}}
|
||||
save = {save}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import request from '../../utils/request-middleware.js';
|
||||
import _ from 'lodash';
|
||||
import EditorPage from '../basePages/editPage/editorPage.jsx';
|
||||
import EditorPage from '../basePages/editorPage/editorPage.jsx';
|
||||
import { DEFAULT_BREW } from '../../../../server/brewDefaults.js';
|
||||
|
||||
const NewPage = (props)=>{
|
||||
@@ -30,6 +30,7 @@ const NewPage = (props)=>{
|
||||
showFloatingButtons = {false}
|
||||
showEditorButtons = {true}
|
||||
pageName = {'newPage'}
|
||||
pageTitle = {'Sandbox'}
|
||||
brew = {props.brew}
|
||||
userThemes = {props.userThemes}
|
||||
save = {save}
|
||||
|
||||
@@ -34,7 +34,7 @@ const UserPage = (props)=>{
|
||||
};
|
||||
|
||||
return (
|
||||
<ListPage pageName={pageName} brewCollection={brewCollection} query={props.query} reportError={(err)=>setError(err)} />
|
||||
<ListPage pageName={'userPage'} brewCollection={brewCollection} query={props.query} reportError={(err)=>setError(err)} />
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user