mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 08:42:31 +02:00
chore(v2): fix code style (revert previous changes)
This commit is contained in:
parent
1480a7eb80
commit
1f00d15c74
143 changed files with 457 additions and 458 deletions
|
@ -11,12 +11,12 @@ import {Sidebar, SidebarItem, Order} from './types';
|
|||
export default function createOrder(allSidebars: Sidebar = {}): Order {
|
||||
const order: Order = {};
|
||||
|
||||
Object.keys(allSidebars).forEach(sidebarId => {
|
||||
Object.keys(allSidebars).forEach((sidebarId) => {
|
||||
const sidebar = allSidebars[sidebarId];
|
||||
|
||||
const ids: string[] = [];
|
||||
const indexItems = ({items}: {items: SidebarItem[]}) => {
|
||||
items.forEach(item => {
|
||||
items.forEach((item) => {
|
||||
switch (item.type) {
|
||||
case 'category':
|
||||
indexItems({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue