From 05f7b733076b566e17883695e85874db040f5a54 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 16 Oct 2018 16:36:06 +0100 Subject: chore: convert to stateless component --- .../react-shared/src/components/markdown_paragraph_block.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/react-shared/src/components/markdown_paragraph_block.tsx b/packages/react-shared/src/components/markdown_paragraph_block.tsx index 519638446..eeaef8571 100644 --- a/packages/react-shared/src/components/markdown_paragraph_block.tsx +++ b/packages/react-shared/src/components/markdown_paragraph_block.tsx @@ -5,10 +5,6 @@ import { colors } from '../utils/colors'; export interface MarkdownParagraphBlockProps {} -export interface MarkdownParagraphBlockState {} - -export class MarkdownParagraphBlock extends React.Component { - public render(): React.ReactNode { - return {this.props.children}; - } -} +export const MarkdownParagraphBlock: React.StatelessComponent = ({ children }) => { + return {children}; +}; -- cgit v1.2.3