Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anweisen committed Jun 25, 2024
1 parent d7fb8e9 commit 8a46665
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ProfileOptions from "./ui/ProfileOptions";
import "./NavBar.scss";

const NavBar = ({sitename}: { sitename: string }) => {
const {loggedIn, name, picture} = useContext(UserContext);
const {loggedIn, picture} = useContext(UserContext);
const [optionsVisible, setOptionsVisible] = useState(false);
const profileRef = useRef(null);
const navigate = useNavigate();
Expand Down
8 changes: 4 additions & 4 deletions src/components/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useContext, useEffect, useRef, useState} from "react";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faCircleXmark, faCompass, faFilm, faImage, faKeyboard, faLaptop, faList, faSearch, faTv, faXmark} from "@fortawesome/free-solid-svg-icons";
import {faCircleXmark, faCompass, faFilm, faImage, faKeyboard, faSearch, faTv, faXmark} from "@fortawesome/free-solid-svg-icons";
import Loader from "./Loader";
import {AppContext} from "./context/AppContext";
import {provideImageUrl, searchMovies, searchSeries} from "../tmdb/api";
Expand Down Expand Up @@ -129,9 +129,9 @@ const Search = ({openMenu}: { openMenu: (item: Item) => void }) => {
<div className="SearchResults" style={!focus ? {display: "none"} : undefined}>
{!series && !movies
? <Loader/> : !inputRef?.current?.value?.length
? <div className="None"><FontAwesomeIcon icon={faKeyboard}/>enter a show or movie name</div>
: !series?.length && !movies?.length
? <div className="None"><FontAwesomeIcon icon={faCircleXmark}/>try another show or movie</div> : undefined}
? <div className="None"><FontAwesomeIcon icon={faKeyboard}/>enter a show or movie name</div>
: !series?.length && !movies?.length
? <div className="None"><FontAwesomeIcon icon={faCircleXmark}/>try another show or movie</div> : undefined}

{series?.map((value, index) => (
<div className="Result" key={index}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/ImportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "./ImportModal.scss";

const ImportModal = () => {
const {closeModal} = useContext(ModalContext);
const {items, setItems, writeItemsToCookies, retrieveItemsFromCookies} = useContext(AppContext);
const {items, writeItemsToCookies, retrieveItemsFromCookies} = useContext(AppContext);

const [importMethod, setImportMethod] = useState("");

Expand Down

0 comments on commit 8a46665

Please sign in to comment.