From ad2a94596544d684f9c991dc5d24c9f70bed11f7 Mon Sep 17 00:00:00 2001 From: Jonasz Bigda Date: Fri, 24 Jul 2020 20:27:05 +0200 Subject: [PATCH] new look / search list / restaurant view --- src/App.js | 6 ++++- src/App.scss | 4 ++- src/Design.scss | 10 ++++++- src/actions/index.js | 37 +++++++++++++++++++++++++ src/components/CardRestaurant.js | 45 +++++++++++++++++-------------- src/components/Pictograms.js | 15 +++++++---- src/components/Restaurant.js | 32 ++++++++++++++++++++++ src/components/SearchResults.js | 21 ++++++++------- src/public/photo.jpg | Bin 0 -> 178171 bytes src/reducers/dishes.js | 14 ++++++++++ src/reducers/index.js | 4 +++ src/reducers/restaurant.js | 12 +++++++++ src/styles/Restaurant.scss | 36 +++++++++++++++++++++++++ src/styles/SearchResults.scss | 16 ++++++----- 14 files changed, 208 insertions(+), 44 deletions(-) create mode 100644 src/components/Restaurant.js create mode 100644 src/public/photo.jpg create mode 100644 src/reducers/dishes.js create mode 100644 src/reducers/restaurant.js create mode 100644 src/styles/Restaurant.scss diff --git a/src/App.js b/src/App.js index 6039327..2d7c013 100644 --- a/src/App.js +++ b/src/App.js @@ -5,6 +5,7 @@ import LogoMain from "./components/logoMain"; import Footer from "./components/Footer"; import SearchPanel from "./components/SearchPanel"; import SearchResults from "./components/SearchResults"; +import Restaurant from "./components/Restaurant"; import { createMuiTheme, ThemeProvider } from "@material-ui/core/styles"; import { useSelector } from "react-redux"; @@ -25,13 +26,16 @@ function App() {
- + {(appMode === "init" || appMode === "search results") && ( + + )} {appMode === "init" && (

Sprawdź co serwuje Twoja ulubiona restauracja.

)} {appMode === "search results" && } + {appMode === "restaurant" && }