Add Restaurant almost done
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user