diff --git a/src/components/EpisodeList.tsx b/src/components/EpisodeList.tsx index 2f47b75..df73cfa 100644 --- a/src/components/EpisodeList.tsx +++ b/src/components/EpisodeList.tsx @@ -1,15 +1,6 @@ import dayjs from 'dayjs' -import { - Box, - Button, - Markdown, - Text, - Image, - ThemeContext, - Anchor, -} from 'grommet' +import { Box, Button, Text, Image, ThemeContext } from 'grommet' import { Episode, Feed } from '../types' -import TurndownService from 'turndown' import { Ascend, Descend, Checkmark } from 'grommet-icons' import Launch from '../assets/launch.png' import { useEffect, useRef, useState } from 'react' @@ -17,18 +8,6 @@ import _ from 'lodash' import { useAppDispatch } from '../store/hooks' import { PAGE_SIZE } from '../store/constants' -const turndownService = new TurndownService() - -function MarkAnchor(props: any) { - let label = props.title - if (!label) { - if (props.children && typeof props.children[0] === 'string') { - label = props.children[0] - } - } - return -} - export default function EpisodeList({ episodes, activeFeed, @@ -138,9 +117,6 @@ export default function EpisodeList({ ref={listContainer} > {_eposides.map((item, idx) => { - const digest = turndownService.turndown( - item?.description || '' - ) let isActive = false if (item.guid) { isActive = item.guid === activeItem?.guid diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 14ddf0d..6725ef8 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react' import { useAppDispatch, useAppSelector } from '../store/hooks' import { Episode, Feed } from '../types' import { fetchFeed } from '../utils/network' -import { allEpisodes, allFeeds, clearStorage, connect } from '../utils/storage' +import { allEpisodes, allFeeds, connect } from '../utils/storage' import EpisodeList from './EpisodeList' import PodPlayer from './PodPlayer' import Reader from './Reader' diff --git a/src/components/PodPlayer.tsx b/src/components/PodPlayer.tsx index 55f7b22..4386da4 100644 --- a/src/components/PodPlayer.tsx +++ b/src/components/PodPlayer.tsx @@ -1,5 +1,4 @@ import { Box, Button, Image } from 'grommet' -import { Close } from 'grommet-icons' import ReactAudioPlayer from 'react-audio-player' import { Episode } from '../types' import { stripURL } from '../utils/format'