bugfixes
Summary: - adds favicon - adds page titles - fixes bug in react native code gen allow-large-files Reviewed By: emilsjolander Differential Revision: D7013492 fbshipit-source-id: d29a56a7caddf0da4fb19a0ba443c6906ccfff56
This commit is contained in:
committed by
Facebook Github Bot
parent
7f44ec512e
commit
e024943c4b
@@ -11,11 +11,14 @@
|
||||
import React from 'react';
|
||||
import Toolbar from './Toolbar';
|
||||
import Footer from './Footer';
|
||||
import Helmet from 'react-helmet';
|
||||
import favicon from '../pages/logos/favicon.png';
|
||||
import './Page.css';
|
||||
require('prismjs/themes/prism.css');
|
||||
|
||||
type Props = {|
|
||||
children: any,
|
||||
title?: string,
|
||||
className?: string,
|
||||
withSpacing?: boolean,
|
||||
shouldShowFooter?: boolean,
|
||||
@@ -23,6 +26,10 @@ type Props = {|
|
||||
|
||||
export default (props: Props) => (
|
||||
<div className={`Page ${props.className || ''}`}>
|
||||
<Helmet>
|
||||
<title>{`Yoga Layout${props.title ? ` | ${props.title}` : ''}`}</title>
|
||||
<link rel="shortcut icon" type="image/png" href={favicon} />
|
||||
</Helmet>
|
||||
<Toolbar />
|
||||
<div className={`PageContent ${props.withSpacing ? 'withSpacing' : ''}`}>
|
||||
{props.children}
|
||||
|
Reference in New Issue
Block a user