Rename SearchResults -> SearchResult
This commit is contained in:
parent
0a138375dc
commit
512b258131
|
@ -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 {
|
||||
|
|
|
@ -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;
|
Loading…
Reference in a new issue