- {this.props.prefix ?
{this.props.prefix} : ''}
- {element}
- {renderElementInsideLabel && (
-
- )}
- {formFieldFileSelectorTypes.includes(this.props.type) ? (
-
- ) : null}
- {this.props.postfix ? (
-
{this.props.postfix}
- ) : (
- ''
- )}
- {isError && this.state.errorMessage ? (
-
{this.state.errorMessage}
- ) : (
- ''
- )}
-
- );
- }
-}
-
-export default FormField;
-/* eslint-enable */
diff --git a/src/renderer/component/truncatedMarkdown/index.js b/src/renderer/component/truncatedMarkdown/index.js
deleted file mode 100644
index fddddf434..000000000
--- a/src/renderer/component/truncatedMarkdown/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import React from 'react';
-import { connect } from 'react-redux';
-import TruncatedMarkdown from './view';
-
-export default connect()(TruncatedMarkdown);
diff --git a/src/renderer/component/truncatedMarkdown/view.jsx b/src/renderer/component/truncatedMarkdown/view.jsx
deleted file mode 100644
index f19ab67ab..000000000
--- a/src/renderer/component/truncatedMarkdown/view.jsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import ReactMarkdown from 'react-markdown';
-import ReactDOMServer from 'react-dom/server';
-
-class TruncatedMarkdown extends React.PureComponent {
- static propTypes = {
- lines: PropTypes.number,
- };
-
- static defaultProps = {
- lines: null,
- };
-
- transformMarkdown(text) {
- // render markdown to html string then trim html tag
- const htmlString = ReactDOMServer.renderToStaticMarkup(
-