web client v0.7 (edit dish / visibility / delete/ routes)
This commit is contained in:
@@ -13,6 +13,7 @@ import axios from "axios";
|
||||
import EditCategoriesList from "../Output/EditCategoriesList";
|
||||
import { notification, refreshUserData } from "../../actions";
|
||||
import { showBackdrop, hideBackdrop } from "../../actions/toggles.js";
|
||||
import { backend } from "../../config";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
@@ -55,7 +56,7 @@ export default function EditRestaurantMenu(props) {
|
||||
action: "add",
|
||||
};
|
||||
axios({
|
||||
url: "http://localhost:4000/restaurant/category",
|
||||
url: backend + "/restaurant/category",
|
||||
method: "POST",
|
||||
data: data,
|
||||
headers: {
|
||||
@@ -107,6 +108,7 @@ export default function EditRestaurantMenu(props) {
|
||||
<Divider />
|
||||
</div>
|
||||
<EditCategoriesList
|
||||
restaurantId={props.restaurant._id}
|
||||
categories={categories}
|
||||
deleteCategory={removeCategory}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user