Skip to content

Commit

Permalink
fix: unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
KnownBlackHat committed Oct 11, 2023
1 parent 229d106 commit d856cc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ export default function Main (props) {

headline={item.data.title}

newslink={item.data.url}


media={
item.data.is_video?(item.data.media && item.data.media.reddit_video && item.data.media.reddit_video.fallback_url):(item.data.preview && item.data.preview.reddit_video_preview && item.data.preview.reddit_video_preview.fallback_url)

Expand Down
2 changes: 1 addition & 1 deletion src/components/MediaCard.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useRef } from "react";

export default function MediaCard (props) {
const { image, media, headline, newslink, speed } = props
const { image, media, headline, speed } = props
const video = useRef();
const handleFocus = () => {
video.current && !video.current.classList.contains("fixed") && video.current.play();
Expand Down

0 comments on commit d856cc6

Please sign in to comment.