added prettier, removed seperate react eslint config, fixed missing

component display name Markdown.js, and added run method to app
This commit is contained in:
JJ Kasper
2018-06-01 16:31:14 -05:00
parent 0316746cae
commit 53ac8a6793
13 changed files with 66 additions and 89 deletions

View File

@@ -1,4 +1,4 @@
import { Component } from 'react';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import fetch from 'isomorphic-unfetch';
import mapUser from '../util/mapUser';

View File

@@ -1,4 +1,4 @@
import { Component } from 'react';
import React, { Component } from 'react';
import cm from 'codemirror';
import { getKey, isCtrlKey } from '../util/keys';

View File

@@ -2,10 +2,13 @@ import dynamic from 'next/dynamic';
import freezeSSR from '../util/freezeSSR';
const Markdown = dynamic(import('react-markdown'), freezeSSR('.Markdown'));
const renderers = {
link : props => (<a href={props.href}
target='_blank' rel='noopener noreferrer'>{props.children}</a>)
};
const link = props => (
<a {...props}
target='_blank'
rel='noopener noreferrer'
/>
)
const renderers = { link };
const AddRenderers = ({ className, source }) => (
<Markdown {...{className, source, renderers}} />
);

View File

@@ -1,4 +1,4 @@
import { Component } from 'react';
import React, { Component } from 'react';
import Router from 'next/router';
import dynamic from 'next/dynamic';
import Page from '../comps/Page';