Moving AppContext into its own component

This commit is contained in:
Jeff Avallone 2019-01-12 12:15:18 -05:00
parent 786cd06cd9
commit d589329883
5 changed files with 4 additions and 4 deletions

View File

@ -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';

View File

@ -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 = [

View File

@ -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

View File

@ -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