Search query / results cards
This commit is contained in:
28
src/components/SearchResults.js
Normal file
28
src/components/SearchResults.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import React from "react";
|
||||
import CardRestaurant from "./CardRestaurant";
|
||||
import { useSelector } from "react-redux";
|
||||
|
||||
export default function SearchResults() {
|
||||
var results = useSelector((store) => store.searchResults);
|
||||
|
||||
return (
|
||||
<div className="search-results">
|
||||
<CardRestaurant
|
||||
name="Kuchnie Świata"
|
||||
city="Mikołajki"
|
||||
hours="7:00 - 23:00"
|
||||
/>
|
||||
<CardRestaurant
|
||||
name="Grzmiące Patyki"
|
||||
city="Ciechanów"
|
||||
hours="7:00 - 23:00"
|
||||
/>
|
||||
<CardRestaurant name="Naruto Sushi" city="Tokio" hours="7:00 - 23:00" />
|
||||
<CardRestaurant
|
||||
name="Gówno"
|
||||
city="Dąbrowa górnicza"
|
||||
hours="7:00 - 23:00"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user