Add Restaurant almost done

This commit is contained in:
2020-09-18 18:59:18 +02:00
parent 1c9d9e2021
commit 732ad74657
8 changed files with 243 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
import React from "react";
import { Router, Switch, Route } from "react-router-dom";
import PrivateRoute from "./components/PrivateRoute";
import "./App.scss";
import TopBar from "./components/TopBar";
import LogoMain from "./components/Output/logoMain";
@@ -61,9 +62,11 @@ function App(props) {
<Route path="/register">
<RegisterDialog />
</Route>
<Route path="/newRestaurant">
<NewRestaurant />
</Route>
<PrivateRoute
path="/newRestaurant"
component={<NewRestaurant />}
/>
<PrivateRoute path="/newDish" component={<NewRestaurant />} />
<Route path="/forgotpassword">
<ForgotPassword />
</Route>