diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-03 03:37:31 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-03 03:37:31 +0300 |
commit | e491abb55723ab20a36ead83320e40627cca8e06 (patch) | |
tree | 0ac03f8ba833bc5c72911696629af3f0042e4734 /src/lib/Markdown/Markdown.tsx | |
parent | a2877c2844825853b8913a07a40f814fc03ac999 (diff) | |
download | react-benzin-e491abb55723ab20a36ead83320e40627cca8e06.tar.gz |
fix: correct linting errors :rotating_light:
Diffstat (limited to 'src/lib/Markdown/Markdown.tsx')
-rw-r--r-- | src/lib/Markdown/Markdown.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Markdown/Markdown.tsx b/src/lib/Markdown/Markdown.tsx index 944ac86..b3119f1 100644 --- a/src/lib/Markdown/Markdown.tsx +++ b/src/lib/Markdown/Markdown.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import React, { useState } from 'react'; import axios from 'axios'; import ContentSection from '../ContentSection/ContentSection'; @@ -30,7 +30,7 @@ const Level: React.FC<RawLinesPropType> = ({ rawLines, level = 0 }) => { const rawContent = (contentSize > 0) ? rawLines.slice(1, contentSize) : rawLines.slice(1); const rawChildren = rawLines.slice(contentSize); - const childrenLineGroups = rawChildren.reduce((acc: any[], cur: string) => { + const childrenLineGroups = rawChildren.reduce((acc: string[][], cur: string) => { if (cur.match(header(level + 1))) acc.push([]); if (acc.length) acc[acc.length - 1].push(cur); return acc; |