Rename SearchResults -> SearchResult

This commit is contained in:
Nikhil Nawgiri 2024-10-27 12:56:09 +01:00
parent 0a138375dc
commit 512b258131
2 changed files with 5 additions and 4 deletions

View file

@ -38,6 +38,7 @@ header {
main {
flex-grow: 1;
background: linear-gradient(220deg, var(--jf-gradient-color-secondary-dark), var(--jf-gradient-color-primary-dark));
padding: 7px 15px;
}
h1 {

View file

@ -1,9 +1,9 @@
interface SearchResultsProps {
interface SearchResultProps {
items: object[],
}
const SearchResults = ({ items }: SearchResultsProps) => (
<div className="search-results-wrapper">
const SearchResult = ({ items }: SearchResultProps) => (
<div className="search-result-wrapper">
{items.length > 0 && items.map((item) => {
const { Title, Poster, imdbID, Year, Type } = item;
return (
@ -22,4 +22,4 @@ const SearchResults = ({ items }: SearchResultsProps) => (
</div>
);
export default SearchResults;
export default SearchResult;