diff --git a/src/components/Episode.jsx b/src/components/Episode.jsx
index aa79690..32bb374 100644
--- a/src/components/Episode.jsx
+++ b/src/components/Episode.jsx
@@ -32,27 +32,4 @@ const Episode = ({ link, title }) => {
);
};
-// class Episode extends Component {
-// divStyles = {
-// width: "77vw",
-// float: "right",
-// marginRight: "1vw",
-// };
-// render() {
-// return (
-//
- {episodes ? (
-
-
-
-

+ {episodes && (
+
+
+
+

+
- {episodes.map((episode, i) => (
-
- ))}
- ) : (
-
- )}
-
- );
- }
+ {episodes.map((episode, i) => (
+
+ ))}
+
+ )}
+
+ );
+
}
export default EpisodeList;
diff --git a/src/components/LoadingStatus.jsx b/src/components/LoadingStatus.jsx
index 8bc4db3..02586a4 100644
--- a/src/components/LoadingStatus.jsx
+++ b/src/components/LoadingStatus.jsx
@@ -1,5 +1,4 @@
import React from "react";
-
import logo from "../logo.svg";
const LoadingStatus = ({ fetching }) => {
diff --git a/src/components/SearchHistory.jsx b/src/components/SearchHistory.jsx
index 1856814..08ea2c4 100644
--- a/src/components/SearchHistory.jsx
+++ b/src/components/SearchHistory.jsx
@@ -1,7 +1,8 @@
import React from "react";
import { Button, Menu, MenuItem } from "@material-ui/core";
import "../App.css";
-export default function SearchHistory(props) {
+
+const SearchHistory = ({ getFeed, history }) => {
const [anchorEl, setAnchorEl] = React.useState(null);
const handleClick = (event) => {
@@ -9,8 +10,8 @@ export default function SearchHistory(props) {
};
const handleClose = (event) => {
- if (event.currentTarget.innerText != '')
- props.getFeed({target: {elements: {feed_url: {value: event.currentTarget.innerText}}}});
+ if (event.currentTarget.innerText != '')
+ getFeed({ target: { elements: { feed_url: { value: event.currentTarget.innerText } } } });
setAnchorEl(null);
};
@@ -23,7 +24,7 @@ export default function SearchHistory(props) {
};
const renderMenuItems = () => {
- return
{props.history.map(renderItem)}
;
+ return
{history.map(renderItem)}
;
};
return (
@@ -43,8 +44,10 @@ export default function SearchHistory(props) {
open={Boolean(anchorEl)}
onClose={handleClose}
>
- {props.history ? renderMenuItems() :
}
+ {history ? renderMenuItems() :
}
);
}
+
+export default SearchHistory;