diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-09 12:05:35 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-09 12:05:35 +0300 |
commit | b74897afe41962312828ffd362b7dd5ee8336775 (patch) | |
tree | ff0409288a94f48bcab083dafa2050d3afe644d3 | |
parent | ae3228b9b3e95ace25292d0231e98e6087781c0a (diff) | |
download | react-benzin-b74897afe41962312828ffd362b7dd5ee8336775.tar.gz |
feat: wrap no-section header into Typography
-rw-r--r-- | src/lib/Markdown/Section.tsx | 3 |
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])}/> </> ) |