Footer implementation

Summary: Footer Implementation

Reviewed By: emilsjolander

Differential Revision: D6998645

fbshipit-source-id: db637f2d9fe1cdbcaa8366e0cc03f2bf67e2543a
This commit is contained in:
Pritesh Nandgaonkar
2018-02-15 06:12:23 -08:00
committed by Facebook Github Bot
parent d4b20f5793
commit aac40cf89b
7 changed files with 176 additions and 67 deletions

View File

@@ -12,6 +12,7 @@
import React from 'react';
import Toolbar from './Toolbar';
import Footer from './Footer';
import './Page.css';
require('prismjs/themes/prism.css');
@@ -19,13 +20,15 @@ type Props = {|
children: any,
className?: string,
withSpacing?: boolean,
shouldShowFooter?: boolean,
|};
export default (props: Props) => (
<div className={`Page ${props.className || ''}`}>
<Toolbar/>
<Toolbar />
<div className={`PageContent ${props.withSpacing ? 'withSpacing' : ''}`}>
{props.children}
</div>
{props.shouldShowFooter && <Footer />}
</div>
);