diff --git a/src/components/App/index.js b/src/components/App/index.js index 724ce63..ef53241 100644 --- a/src/components/App/index.js +++ b/src/components/App/index.js @@ -1,6 +1,6 @@ import React from 'react'; -import { AppContextProvider } from 'components/App/context'; +import { AppContextProvider } from 'components/AppContext'; import Form from 'components/Form'; import Loader from 'components/Loader'; import Message from 'components/Message'; diff --git a/src/components/App/context.js b/src/components/AppContext/index.js similarity index 100% rename from src/components/App/context.js rename to src/components/AppContext/index.js diff --git a/src/components/Form/index.js b/src/components/Form/index.js index bf8167a..c8b03fc 100644 --- a/src/components/Form/index.js +++ b/src/components/Form/index.js @@ -4,7 +4,7 @@ import ExpandIcon from 'react-feather/dist/icons/chevrons-down'; import style from './style.module.css'; -import AppContext from 'components/App/context'; +import AppContext from 'components/AppContext'; import FormActions from 'components/FormActions'; const syntaxList = [ diff --git a/src/components/FormActions/index.js b/src/components/FormActions/index.js index 5021925..33a3319 100644 --- a/src/components/FormActions/index.js +++ b/src/components/FormActions/index.js @@ -5,7 +5,7 @@ import LinkIcon from 'react-feather/dist/icons/link'; import style from './style.module.css'; -import AppContext from 'components/App/context'; +import AppContext from 'components/AppContext'; class FormActions extends React.PureComponent { static contextType = AppContext diff --git a/src/components/SVG/index.js b/src/components/SVG/index.js index 761fdaa..966d7f4 100644 --- a/src/components/SVG/index.js +++ b/src/components/SVG/index.js @@ -4,7 +4,7 @@ import PlaceholderIcon from 'react-feather/dist/icons/file-text'; import style from './style.module.css'; -import AppContext from 'components/App/context'; +import AppContext from 'components/AppContext'; class SVG extends React.PureComponent { static contextType = AppContext