diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-16 23:36:06 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-16 23:36:06 +0800 |
commit | 05f7b733076b566e17883695e85874db040f5a54 (patch) | |
tree | 6cf403d3eb3b710efc547f55528e189fbed78e77 /packages/react-shared/src | |
parent | bf51728466956837bbe669dfa0883c4d6611a628 (diff) | |
download | dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar.gz dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar.bz2 dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar.lz dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar.xz dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.tar.zst dexon-sol-tools-05f7b733076b566e17883695e85874db040f5a54.zip |
chore: convert to stateless component
Diffstat (limited to 'packages/react-shared/src')
-rw-r--r-- | packages/react-shared/src/components/markdown_paragraph_block.tsx | 10 |
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>; +}; |