mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 05:07:14 +02:00
* feat(v2): headerlinks * fix test * nits * remove tictactoe: * headerIcon * nits * remove lang dropdown * fix failing test * search box * algolia search * use babel-eslint to resolve dynamic import * nits * favicon and title * Update .eslintignore
44 lines
997 B
JavaScript
44 lines
997 B
JavaScript
/**
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import Footer from '@theme/Footer'; // eslint-disable-line
|
|
import Navbar from '@theme/Navbar'; // eslint-disable-line
|
|
|
|
import './styles.css';
|
|
|
|
/* eslint-disable react/prefer-stateless-function */
|
|
export default class Layout extends React.Component {
|
|
render() {
|
|
const {
|
|
children,
|
|
pagesMetadatas = [],
|
|
docsMetadatas = {},
|
|
env,
|
|
siteConfig,
|
|
location,
|
|
metadata,
|
|
} = this.props;
|
|
return (
|
|
<div>
|
|
<Navbar
|
|
docsMetadatas={docsMetadatas}
|
|
env={env}
|
|
metadata={metadata}
|
|
siteConfig={siteConfig}
|
|
/>
|
|
{children}
|
|
<Footer
|
|
docsMetadatas={docsMetadatas}
|
|
location={location}
|
|
pagesMetadatas={pagesMetadatas}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
}
|