Skip to content

Commit

Permalink
es6: remove comments between import groups throughout
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeorpinel committed Jan 16, 2020
1 parent 4950d25 commit 6ac834e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 22 deletions.
6 changes: 3 additions & 3 deletions pages/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import Error from 'next/error'
import Router from 'next/router'
import fetch from 'isomorphic-fetch'
import kebabCase from 'lodash.kebabcase'
// components

import Page from '../src/Page'
import { HeadInjector } from '../src/Documentation/HeadInjector'
import Hamburger from '../src/Hamburger'
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'
// sidebar data and helpers

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

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

const ROOT_ELEMENT = 'bodybag'
Expand Down
1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-env node */

/*
* Custom server (with custom routes) See
* https://nextjs.org/docs/advanced-features/custom-server
Expand Down
10 changes: 5 additions & 5 deletions src/Documentation/Markdown/Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react'
import PropTypes from 'prop-types'
import NextLink from 'next/link'
import Router from 'next/router'
// components

import ReactMarkdown from 'react-markdown'
import { LightButton } from '../LightButton'
import Tutorials from '../Tutorials'
import Tooltip from '../../Tooltip'
import Collapsible from 'react-collapsible'
// syntax highlighter

import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'
import { docco } from 'react-syntax-highlighter/dist/cjs/styles/hljs'
import python from 'react-syntax-highlighter/dist/cjs/languages/hljs/python'
Expand All @@ -20,11 +20,11 @@ import vim from 'react-syntax-highlighter/dist/cjs/languages/hljs/vim'
import usage from './lang/usage'
import dvc from './lang/dvc'
import linker from './utils/remark-linker'
// consts

import { PAGE_DOC } from '../../consts'
// utils

import kebabCase from 'lodash.kebabcase'
// styles

import styled from 'styled-components'
import { media } from '../../../src/styles'

Expand Down
2 changes: 1 addition & 1 deletion src/Documentation/RightPanel/RightPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import styled from 'styled-components'
import { LightButton } from '../LightButton'
import Tutorials from '../Tutorials'
// utils

import throttle from 'lodash.throttle'

const ROOT_ELEMENT = 'bodybag'
Expand Down
10 changes: 5 additions & 5 deletions src/Documentation/SidebarMenu/SidebarMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import PerfectScrollbar from 'perfect-scrollbar'
import scrollIntoView from 'dom-scroll-into-view'
import PropTypes from 'prop-types'
import NextLink from 'next/link'
// consts

import { PAGE_DOC } from '../../consts'
// components

import DownloadButton from '../../DownloadButton'
// utils

import includes from 'lodash.includes'
// styles

import styled from 'styled-components'
import { OnlyDesktop, media } from '../../styles'
// sidebar helpers

import { getParentsListFromPath } from '../../utils/sidebar'

/** Height of each menu child items (to calc Element weight for animations) */
Expand Down
4 changes: 2 additions & 2 deletions src/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React, { useEffect } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { useRouter } from 'next/router'
// components

import TopMenu from '../TopMenu'
import Footer from '../Footer'
import HamburgerMenu from '../HamburgerMenu'
// utils

import { initGA, logPageView } from '../utils/ga'

export default function Layout({ children, enableSmoothScroll }) {
Expand Down
2 changes: 1 addition & 1 deletion src/PromoSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components'
import Router from 'next/router'
import { media } from '../styles'
import { logEvent } from '../utils/ga'
// consts

import { PAGE_DOC } from '../consts'

function goToDocGetStarted() {
Expand Down
8 changes: 4 additions & 4 deletions src/TopMenu/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import NextLink from 'next/link'
// components

import Nav from '../Nav'
// utils

import throttle from 'lodash.throttle'
// styles

import styled from 'styled-components'
import { media } from '../styles'
// constants

import { HEADER } from '../consts'

const MIN_HEIGHT = 78
Expand Down

0 comments on commit 6ac834e

Please sign in to comment.