diff --git a/pages/_document.js b/pages/_document.js index f73dab1cdd..e4c4865665 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -6,7 +6,7 @@ import { META_DESCRIPTION, META_KEYWORDS, META_SOCIAL_IMAGE -} from '../consts' +} from '../src/consts' const inject = str => (
diff --git a/pages/doc.js b/pages/doc.js index 8c3ad0904d..502afefbff 100644 --- a/pages/doc.js +++ b/pages/doc.js @@ -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 diff --git a/pages/features.js b/pages/features.js index e1582a2e4c..3b7acbd94f 100644 --- a/pages/features.js +++ b/pages/features.js @@ -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 = () => ( diff --git a/pages/index.js b/pages/index.js index 7cc58c3493..b62f04c6bb 100644 --- a/pages/index.js +++ b/pages/index.js @@ -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 = () => ( diff --git a/pages/support.js b/pages/support.js index 19a31be769..09ca9b142c 100644 --- a/pages/support.js +++ b/pages/support.js @@ -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 = () => ( diff --git a/src/Documentation/HeadInjector.js b/src/Documentation/HeadInjector.js index 33dd19a922..4a9b06c1d1 100644 --- a/src/Documentation/HeadInjector.js +++ b/src/Documentation/HeadInjector.js @@ -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' }) => ( diff --git a/src/Tooltip/desktop-view.js b/src/Tooltip/desktop-view.js index e2bd40e3f9..267287edc8 100644 --- a/src/Tooltip/desktop-view.js +++ b/src/Tooltip/desktop-view.js @@ -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 = { diff --git a/src/TopMenu/index.js b/src/TopMenu/index.js index d0661351b1..c3204dbfa0 100644 --- a/src/TopMenu/index.js +++ b/src/TopMenu/index.js @@ -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 diff --git a/consts/index.js b/src/consts.js similarity index 100% rename from consts/index.js rename to src/consts.js