aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.tsx2
-rw-r--r--src/lib/Markdown/Markdown.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx
index 9678beb..6646cf0 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -90,7 +90,7 @@ const App: React.FC = () => {
primary
</Button>
</ContentSection>
- <Markdown url='https://raw.githubusercontent.com/eug-vs/react-benzin/develop/README.md' />
+ <Markdown url="https://raw.githubusercontent.com/eug-vs/react-benzin/develop/README.md" />
</div>
</Window>
<Window type="secondary" name="SmartList preview window">
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;