Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the Container component from the docsNavContainer #1599

Merged
merged 1 commit into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/docusaurus-1.x/lib/core/BlogSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

const React = require('react');
const Container = require('./Container.js');
const SideNav = require('./nav/SideNav.js');

const MetadataBlog = require('./MetadataBlog.js');
Expand Down Expand Up @@ -42,15 +41,15 @@ class BlogSidebar extends React.Component {
category: blogSidebarTitle,
};
return (
<Container className="docsNavContainer" id="docsNav" wrapper={false}>
<div className="docsNavContainer" id="docsNav">
<SideNav
language={this.props.language}
root={`${this.props.config.baseUrl}blog/`}
title="Blog"
contents={contents}
current={current}
/>
</Container>
</div>
);
}
}
Expand Down
5 changes: 2 additions & 3 deletions packages/docusaurus-1.x/lib/core/DocsSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

const React = require('react');
const fs = require('fs');
const Container = require('./Container.js');
const SideNav = require('./nav/SideNav.js');
const Metadata = require('../core/metadata.js');

Expand Down Expand Up @@ -38,7 +37,7 @@ class DocsSidebar extends React.Component {
}

return (
<Container className="docsNavContainer" id="docsNav" wrapper={false}>
<div className="docsNavContainer" id="docsNav">
<SideNav
collapsible={this.props.collapsible}
language={this.props.metadata.language}
Expand All @@ -47,7 +46,7 @@ class DocsSidebar extends React.Component {
contents={docsCategories[this.props.metadata.language]}
current={this.props.metadata}
/>
</Container>
</div>
);
}
}
Expand Down