mirror of
https://github.com/wassname/talk.git
synced 2026-07-27 11:28:12 +08:00
Adding div as mapping, since div cannot be descendant of p
This commit is contained in:
@@ -24,7 +24,7 @@ const HistoryComment: StatelessComponent<CommentHistoryProps> = props => {
|
||||
return (
|
||||
<HorizontalGutter>
|
||||
<Flex direction="row" justifyContent="space-between">
|
||||
<Typography variant="bodyCopy">
|
||||
<Typography variant="bodyCopy" headlineMapping={{ bodyCopy: "div" }}>
|
||||
{props.comment.body && (
|
||||
<HTMLContent>{props.comment.body}</HTMLContent>
|
||||
)}
|
||||
|
||||
@@ -59,6 +59,7 @@ it("show all comments", async () => {
|
||||
const mockEvent = {
|
||||
preventDefault: sinon.mock().once(),
|
||||
};
|
||||
|
||||
testRenderer.root
|
||||
.findByProps({
|
||||
id: "talk-comments-permalinkView-showAllComments",
|
||||
|
||||
Reference in New Issue
Block a user