Skip to content

Commit

Permalink
chore: clean up repo, move markdown components
Browse files Browse the repository at this point in the history
  • Loading branch information
bodobraegger committed Jun 23, 2024
1 parent 9376d67 commit dc78435
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Chapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { withTranslation } from 'react-i18next'
import ReactMarkdown from 'react-markdown'
import remarkGfm from 'remark-gfm'
import { LinkComponent } from '../utils/MarkdownComponents'
import { LinkComponent } from './markdown/MarkdownComponents'
import type { IconT } from './Section'
import Target from './Target'

Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import remarkGfm from 'remark-gfm';
import strip_md from 'strip-markdown';
import { remark } from 'remark';

import { LinkComponent } from '../utils/MarkdownComponents';
import { LinkComponent } from './markdown/MarkdownComponents';
import SearchInput from './SearchInput';
import { Link } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Helmet } from 'react-helmet-async'
import { withTranslation } from 'react-i18next'
import ReactMarkdown from 'react-markdown'
import remarkGfm from 'remark-gfm'
import { LinkComponent } from '../utils/MarkdownComponents'
import { LinkComponent } from './markdown/MarkdownComponents'
import Chapter from './Chapter'
import type { ChapterT } from './Chapter'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useContext, useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import { LinksContext } from '../App';
import Loading from '../components/Loading';
import Blockquote from '../components/markdown/Blockquote';
import { LinksContext } from '../../App';
import Loading from '../Loading';
import Blockquote from './Blockquote';
//@ts-ignore
import Quiz from 'react-quiz-component'
import cx from 'classnames'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Helmet } from 'react-helmet-async'

import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import { LinkComponent } from '../utils/MarkdownComponents';
import { LinkComponent } from '../components/markdown/MarkdownComponents';
import { withTranslation } from 'react-i18next';
import type { IconT } from '../components/Section';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Helmet } from 'react-helmet-async'
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import { LinkComponent } from '../utils/MarkdownComponents';
import { LinkComponent } from '../components/markdown/MarkdownComponents';
import { withTranslation } from 'react-i18next'
import type { IconT } from '../components/Section';
import SearchForm from '../components/SearchForm';
Expand Down

0 comments on commit dc78435

Please sign in to comment.