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:
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import cm from 'codemirror';
|
||||
import { getKey, isCtrlKey } from '../util/keys';
|
||||
|
||||
|
||||
@@ -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}} />
|
||||
);
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user