Skip to content

Commit 2bd441f

Browse files
committed
little fix display title
1 parent 4720348 commit 2bd441f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/contentTypes/InText.jsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function InText(props) {
2222
showTranslation
2323
} = props
2424

25-
const { content } = subchapterDoc
25+
const { title, content } = subchapterDoc
2626

2727
let html = marked(content)
2828
const contentWidth = useWindowDimensions().width
@@ -48,7 +48,10 @@ function InText(props) {
4848
}
4949

5050
return (
51-
<View>
51+
<View style={{ padding: 5 }}>
52+
<Text h2 h2Style={globalStyles.subchapter}>
53+
{title}
54+
</Text>
5255
<HTML
5356
renderers={{ intext: { renderer: inTextRenderer, wrapper: 'Text' } }}
5457
html={html}

0 commit comments

Comments
 (0)