aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/react-shared/src/components/markdown_paragraph_block.tsx10
1 files 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<MarkdownParagraphBlockProps, MarkdownParagraphBlockState> {
- public render(): React.ReactNode {
- return <span style={{ color: colors.greyTheme, lineHeight: '26px' }}>{this.props.children}</span>;
- }
-}
+export const MarkdownParagraphBlock: React.StatelessComponent<MarkdownParagraphBlockProps> = ({ children }) => {
+ return <span style={{ color: colors.greyTheme, lineHeight: '26px' }}>{children}</span>;
+};