web client v0.9 (restaurant view)
This commit is contained in:
@@ -14,6 +14,7 @@ import RestaurantMenuIcon from "@material-ui/icons/RestaurantMenu";
|
||||
import AddIcon from "@material-ui/icons/Add";
|
||||
import Badge from "@material-ui/core/Badge";
|
||||
import SearchIcon from "@material-ui/icons/Search";
|
||||
import { formatDateBasic } from "../../Services.js";
|
||||
//--------------
|
||||
import EditRestaurantInfo from "../EditRestaurant/EditRestaurantInfo";
|
||||
import EditRestaurantLocation from "../EditRestaurant/EditRestaurantLocation";
|
||||
@@ -66,7 +67,9 @@ export default function EditRestaurant(props) {
|
||||
badgeData.secondaryText = "Nieaktywna";
|
||||
} else {
|
||||
badgeData.color = "primary";
|
||||
badgeData.secondaryText = `Aktywna do: ${restaurant.subscriptionDue}`;
|
||||
badgeData.secondaryText = `Aktywna do: ${formatDateBasic(
|
||||
restaurant.subscriptionDue
|
||||
)}`;
|
||||
}
|
||||
};
|
||||
dispatch(fetchAllDishes(restaurant._id));
|
||||
|
||||
Reference in New Issue
Block a user