Skip to content

Commit

Permalink
move consts file like styles to src
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Nov 19, 2019
1 parent 18b2232 commit 690ec58
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
META_DESCRIPTION,
META_KEYWORDS,
META_SOCIAL_IMAGE
} from '../consts'
} from '../src/consts'

const inject = str => (
<div className="inject" dangerouslySetInnerHTML={{ __html: str }} />
Expand Down
2 changes: 1 addition & 1 deletion pages/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import RightPanel from '../src/Documentation/RightPanel/RightPanel'
import fetch from 'isomorphic-fetch'
import kebabCase from 'lodash.kebabcase'
// constants
import { HEADER } from '../consts'
import { HEADER } from '../src/consts'
// sidebar data and helpers
import sidebar, { getItemByPath } from '../src/Documentation/SidebarMenu/helper'
// styles
Expand Down
2 changes: 1 addition & 1 deletion pages/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Page from '../src/Page'
import Hero from '../src/Hero'
import FeaturesHero from '../src/FeaturesHero'
import TrySection from '../src/TrySection'
import { META_BASE_TITLE } from '../consts'
import { META_BASE_TITLE } from '../src/consts'

const HeadInjector = () => (
<Head>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Diagram from '../src/Diagram'
import PromoSection from '../src/PromoSection'
import UseCases from '../src/UseCases'
import Subscribe from '../src/Subscribe'
import { META_BASE_TITLE } from '../consts'
import { META_BASE_TITLE } from '../src/consts'

const HeadInjector = () => (
<Head>
Expand Down
2 changes: 1 addition & 1 deletion pages/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Page from '../src/Page'
import Hero from '../src/Hero'
import TrySection from '../src/TrySection'
import Popover from '../src/Popover/Popover'
import { META_BASE_TITLE } from '../consts'
import { META_BASE_TITLE } from '../src/consts'

const HeadInjector = () => (
<Head>
Expand Down
2 changes: 1 addition & 1 deletion src/Documentation/HeadInjector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Head from 'next/head'
import PropTypes from 'prop-types'
import React from 'react'

import { META_BASE_TITLE } from '../../consts'
import { META_BASE_TITLE } from '../consts'

export const HeadInjector = ({ sectionName = 'Documentation' }) => (
<Head>
Expand Down
2 changes: 1 addition & 1 deletion src/Tooltip/desktop-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import ReactMarkdown from 'react-markdown'
import styled from 'styled-components'

import { HEADER } from '../../consts'
import { HEADER } from '../consts'

class DesktopView extends Component {
state = {
Expand Down
2 changes: 1 addition & 1 deletion src/TopMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import throttle from 'lodash.throttle'
import styled from 'styled-components'
import { media } from '../styles'
// constants
import { HEADER } from '../../consts'
import { HEADER } from '../consts'

const MIN_HEIGHT = 78

Expand Down
File renamed without changes.

0 comments on commit 690ec58

Please sign in to comment.