From beff2c4cac5443e59066f0bac7c129d679d633aa Mon Sep 17 00:00:00 2001 From: John Knox Date: Mon, 2 Dec 2019 04:26:35 -0800 Subject: [PATCH] Display post preview before submitting support request Summary: The Markdown component wasn't rendering a single component, so I put it in a container. Also added a margin bottom so it didn't look out of place. There's probably a nicer way to do that. Reviewed By: mweststrate Differential Revision: D18749381 fbshipit-source-id: ea7827dc7e6141fb0dbd5886356736da4b50f5dc --- src/ui/components/Markdown.tsx | 38 +++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/src/ui/components/Markdown.tsx b/src/ui/components/Markdown.tsx index e4e0993ba..831ff4a0a 100644 --- a/src/ui/components/Markdown.tsx +++ b/src/ui/components/Markdown.tsx @@ -7,13 +7,15 @@ * @format */ -import React, {PureComponent, RefObject} from 'react'; +import React, {PureComponent} from 'react'; import styled from 'react-emotion'; import ReactMarkdown from 'react-markdown'; -import ReactDOM from 'react-dom'; import {colors} from './colors'; import {shell} from 'electron'; +const Container = styled('div')({ + padding: 10, +}); const Row = styled('div')({ marginTop: 5, marginBottom: 5, @@ -75,20 +77,22 @@ class LinkReference extends PureComponent<{href: string}> { export function Markdown(props: {source: string}) { return ( - + + + ); }