Skip to content

Commit

Permalink
es6: manual import sort of 3 basic files
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Jan 16, 2020
1 parent 6ac834e commit 7ea2edb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions pages/doc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/* global docsearch:readonly */

import React, { useCallback, useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Error from 'next/error'
import React, { useState, useCallback, useEffect } from 'react'
import kebabCase from 'lodash.kebabcase'
import Error from 'next/error' // comp
import Router from 'next/router'
import fetch from 'isomorphic-fetch'
import kebabCase from 'lodash.kebabcase'
import PropTypes from 'prop-types'
import styled from 'styled-components'

import { structure, getItemByPath } from '../src/utils/sidebar'

import Page from '../src/Page'
import { HeadInjector } from '../src/Documentation/HeadInjector'
Expand All @@ -15,9 +17,6 @@ import SearchForm from '../src/SearchForm'
import SidebarMenu from '../src/Documentation/SidebarMenu/SidebarMenu'
import Markdown from '../src/Documentation/Markdown/Markdown'
import RightPanel from '../src/Documentation/RightPanel/RightPanel'

import { getItemByPath, structure } from '../src/utils/sidebar'

import { media } from '../src/styles'

const ROOT_ELEMENT = 'bodybag'
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* are running.
*/

const next = require('next')
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')

const { getItemByPath } = require('./src/utils/sidebar')

Expand Down
1 change: 1 addition & 0 deletions src/utils/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

const startCase = require('lodash.startcase')

const sidebar = require('../../public/static/docs/sidebar.json')

const PATH_ROOT = '/doc/'
Expand Down

0 comments on commit 7ea2edb

Please sign in to comment.