web client v0.5
//notifications //delete restaurant //change picture //redesigned data store
This commit is contained in:
113
src/App.js
113
src/App.js
@@ -1,8 +1,11 @@
|
||||
import React from "react";
|
||||
import { Router, Switch, Route } from "react-router-dom";
|
||||
import { SnackbarProvider } from "notistack";
|
||||
import PrivateRoute from "./components/PrivateRoute";
|
||||
import "./App.scss";
|
||||
import TopBar from "./components/TopBar";
|
||||
import Notifier from "./components/Notifier";
|
||||
import AppBackdrop from "./components/Output/AppBackdrop";
|
||||
import LogoMain from "./components/Output/logoMain";
|
||||
import Footer from "./components/Output/Footer";
|
||||
import SearchPanel from "./components/Input/SearchPanel";
|
||||
@@ -37,57 +40,67 @@ function App(props) {
|
||||
return (
|
||||
<Router history={props.history}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<div className="App">
|
||||
<TopBar />
|
||||
<div className="main-container">
|
||||
<Switch>
|
||||
<Route exact path="/">
|
||||
<LogoMain />
|
||||
<SearchPanel />
|
||||
<p className="darkParagraph">
|
||||
Sprawdź co serwuje Twoja ulubiona restauracja.
|
||||
</p>
|
||||
</Route>
|
||||
<Route path="/results">
|
||||
<LogoMain />
|
||||
<SearchPanel />
|
||||
<SearchResults />
|
||||
</Route>
|
||||
<Route path="/restaurant">
|
||||
<Restaurant />
|
||||
</Route>
|
||||
<Route path="/dish">
|
||||
<LogoMain />
|
||||
</Route>
|
||||
<Route path="/login">
|
||||
<LoginDialog />
|
||||
</Route>
|
||||
<Route path="/register">
|
||||
<RegisterDialog />
|
||||
</Route>
|
||||
<Route path="/kontakt">
|
||||
<Contact />
|
||||
</Route>
|
||||
<PrivateRoute
|
||||
path="/newRestaurant"
|
||||
component={<NewRestaurant />}
|
||||
/>
|
||||
<PrivateRoute path="/settings" component={<Settings />} />
|
||||
<PrivateRoute
|
||||
path="/editRestaurant/:id"
|
||||
component={<EditRestaurant />}
|
||||
/>
|
||||
<Route path="/forgotpassword">
|
||||
<ForgotPassword />
|
||||
</Route>
|
||||
<Route path="/resetpassword">
|
||||
<ResetPassword />
|
||||
</Route>
|
||||
</Switch>
|
||||
<SnackbarProvider
|
||||
maxSnack={3}
|
||||
anchorOrigin={{
|
||||
vertical: "bottom",
|
||||
horizontal: "center",
|
||||
}}
|
||||
>
|
||||
<div className="App">
|
||||
<AppBackdrop />
|
||||
<Notifier />
|
||||
<TopBar />
|
||||
<div className="main-container">
|
||||
<Switch>
|
||||
<Route exact path="/">
|
||||
<LogoMain />
|
||||
<SearchPanel />
|
||||
<p className="darkParagraph">
|
||||
Sprawdź co serwuje Twoja ulubiona restauracja.
|
||||
</p>
|
||||
</Route>
|
||||
<Route path="/results">
|
||||
<LogoMain />
|
||||
<SearchPanel />
|
||||
<SearchResults />
|
||||
</Route>
|
||||
<Route path="/restaurant/:id">
|
||||
<Restaurant />
|
||||
</Route>
|
||||
<Route path="/dish">
|
||||
<LogoMain />
|
||||
</Route>
|
||||
<Route path="/login">
|
||||
<LoginDialog />
|
||||
</Route>
|
||||
<Route path="/register">
|
||||
<RegisterDialog />
|
||||
</Route>
|
||||
<Route path="/kontakt">
|
||||
<Contact />
|
||||
</Route>
|
||||
<PrivateRoute
|
||||
path="/newRestaurant"
|
||||
component={<NewRestaurant />}
|
||||
/>
|
||||
<PrivateRoute path="/settings" component={<Settings />} />
|
||||
<PrivateRoute
|
||||
path="/editRestaurant/:id"
|
||||
component={<EditRestaurant />}
|
||||
/>
|
||||
<Route path="/forgotpassword">
|
||||
<ForgotPassword />
|
||||
</Route>
|
||||
<Route path="/resetpassword">
|
||||
<ResetPassword />
|
||||
</Route>
|
||||
</Switch>
|
||||
</div>
|
||||
<Dialogs />
|
||||
<Footer />
|
||||
</div>
|
||||
<Dialogs />
|
||||
<Footer />
|
||||
</div>
|
||||
</SnackbarProvider>
|
||||
</ThemeProvider>
|
||||
</Router>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user