Removing syntax map from devel.js
This commit is contained in:
parent
9a10fc35e8
commit
41f10c0dc3
@ -8,12 +8,15 @@ import style from './style.css';
|
||||
import Form from 'components/Form';
|
||||
import Message from 'components/Message';
|
||||
import SVG from 'components/SVG';
|
||||
import { syntaxes, demoImage } from 'devel';
|
||||
import { demoImage } from 'devel';
|
||||
|
||||
const syntaxes = {
|
||||
js: 'JavaScript',
|
||||
pcre: 'PCRE'
|
||||
};
|
||||
|
||||
class App extends React.PureComponent {
|
||||
state = {
|
||||
syntaxes
|
||||
}
|
||||
state = {}
|
||||
|
||||
componentDidMount() {
|
||||
window.addEventListener('hashchange', this.handleHashChange);
|
||||
@ -122,7 +125,7 @@ class App extends React.PureComponent {
|
||||
imageRef = image => this.image = image
|
||||
|
||||
render() {
|
||||
const { svgUrl, pngUrl, permalinkUrl, syntax, expr, syntaxes, image } = this.state;
|
||||
const { svgUrl, pngUrl, permalinkUrl, syntax, expr, image } = this.state;
|
||||
const downloadUrls = [
|
||||
svgUrl,
|
||||
pngUrl
|
||||
|
@ -1,11 +1,6 @@
|
||||
// Data used during development.
|
||||
// Once everything is built, this file will go away
|
||||
|
||||
const syntaxes = {
|
||||
js: 'JavaScript',
|
||||
pcre: 'PCRE'
|
||||
};
|
||||
|
||||
const demoImage = {
|
||||
type: 'Image',
|
||||
children: [
|
||||
@ -228,6 +223,5 @@ const demoImage = {
|
||||
};
|
||||
|
||||
export {
|
||||
syntaxes,
|
||||
demoImage
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user