Skip to content

Commit

Permalink
Update SearchResultsList imports and usage
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeCompleteYT authored Feb 20, 2023
1 parent 717d05e commit baabf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from "react";

import "./App.css";
import { SearchBar } from "./components/SearchBar";
import { ResultsList } from "./components/SearchResultsList";
import { SearchResultsList } from "./components/SearchResultsList";

function App() {
const [results, setResults] = useState([]);
Expand All @@ -11,7 +11,7 @@ function App() {
<div className="App">
<div className="search-bar-container">
<SearchBar setResults={setResults} />
{results && results.length > 0 && <ResultsList results={results} />}
{results && results.length > 0 && <SearchResultsList results={results} />}
</div>
</div>
);
Expand Down

0 comments on commit baabf76

Please sign in to comment.