aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-09 12:05:35 +0300
committereug-vs <eug-vs@keemail.me>2020-04-09 12:05:35 +0300
commitb74897afe41962312828ffd362b7dd5ee8336775 (patch)
treeff0409288a94f48bcab083dafa2050d3afe644d3
parentae3228b9b3e95ace25292d0231e98e6087781c0a (diff)
downloadreact-benzin-b74897afe41962312828ffd362b7dd5ee8336775.tar.gz
feat: wrap no-section header into Typography
-rw-r--r--src/lib/Markdown/Section.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Markdown/Section.tsx b/src/lib/Markdown/Section.tsx
index 987b771..1fcc46f 100644
--- a/src/lib/Markdown/Section.tsx
+++ b/src/lib/Markdown/Section.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import ContentSection from '../ContentSection/ContentSection';
+import { Typography } from '@material-ui/core';
import Content from './Content';
import { ParserPropTypes } from './types';
@@ -32,7 +33,7 @@ const Section: React.FC<PropTypes> = ({ rawLines, level = 0 }) => {
if (!level) return (
<>
- <Content rawLines={rawContent} />
+ <Typography> <Content rawLines={rawContent} /> </Typography>
<ChildrenSections rawLines={rawLines} level={getHeaderLevel(rawLines[0])}/>
</>
)