aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Markdown/Text.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-05 22:06:54 +0300
committereug-vs <eug-vs@keemail.me>2020-04-05 22:06:54 +0300
commit828946eb02bdfaa7ec5631f1e854881f874f7b7e (patch)
treea34e88a752ce49965433a1794f660a1e46c30747 /src/lib/Markdown/Text.tsx
parent09f8c6865fb9a7e239cc907e313db44cccb7b5e8 (diff)
downloadreact-benzin-828946eb02bdfaa7ec5631f1e854881f874f7b7e.tar.gz
refactor: rename InlineSyntax -> SyntacticSpan
Diffstat (limited to 'src/lib/Markdown/Text.tsx')
-rw-r--r--src/lib/Markdown/Text.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/Markdown/Text.tsx b/src/lib/Markdown/Text.tsx
index b989476..e287dee 100644
--- a/src/lib/Markdown/Text.tsx
+++ b/src/lib/Markdown/Text.tsx
@@ -1,9 +1,12 @@
import React from 'react';
-import { InlineParserPropTypes } from './types';
-import InlineSyntax, { splitter } from './InlineSyntax';
+import SyntacticSpan, { splitter } from './SyntacticSpan';
-const Text: React.FC<InlineParserPropTypes> = ({ line }) => {
- return <>{line.split(splitter).map(span => <InlineSyntax line={span} />)}</>;
+interface PropTypes {
+ line: string;
+}
+
+const Text: React.FC<PropTypes> = ({ line }) => {
+ return <>{line.split(splitter).map(span => <SyntacticSpan span={span} />)}</>;
}
export default Text;