Moving AppContext into its own component
This commit is contained in:
parent
786cd06cd9
commit
d589329883
@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { AppContextProvider } from 'components/App/context';
|
import { AppContextProvider } from 'components/AppContext';
|
||||||
import Form from 'components/Form';
|
import Form from 'components/Form';
|
||||||
import Loader from 'components/Loader';
|
import Loader from 'components/Loader';
|
||||||
import Message from 'components/Message';
|
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 style from './style.module.css';
|
||||||
|
|
||||||
import AppContext from 'components/App/context';
|
import AppContext from 'components/AppContext';
|
||||||
import FormActions from 'components/FormActions';
|
import FormActions from 'components/FormActions';
|
||||||
|
|
||||||
const syntaxList = [
|
const syntaxList = [
|
||||||
|
@ -5,7 +5,7 @@ import LinkIcon from 'react-feather/dist/icons/link';
|
|||||||
|
|
||||||
import style from './style.module.css';
|
import style from './style.module.css';
|
||||||
|
|
||||||
import AppContext from 'components/App/context';
|
import AppContext from 'components/AppContext';
|
||||||
|
|
||||||
class FormActions extends React.PureComponent {
|
class FormActions extends React.PureComponent {
|
||||||
static contextType = AppContext
|
static contextType = AppContext
|
||||||
|
@ -4,7 +4,7 @@ import PlaceholderIcon from 'react-feather/dist/icons/file-text';
|
|||||||
|
|
||||||
import style from './style.module.css';
|
import style from './style.module.css';
|
||||||
|
|
||||||
import AppContext from 'components/App/context';
|
import AppContext from 'components/AppContext';
|
||||||
|
|
||||||
class SVG extends React.PureComponent {
|
class SVG extends React.PureComponent {
|
||||||
static contextType = AppContext
|
static contextType = AppContext
|
||||||
|
Loading…
Reference in New Issue
Block a user