Commit d5893298 authored by Jeff Avallone's avatar Jeff Avallone

Moving AppContext into its own component

parent 786cd06c
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';
......
......@@ -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 = [
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment