menu: UI enhancements

This commit is contained in:
2025-12-22 23:49:44 +03:00
parent f580653ef2
commit fc1a75bc4b
5 changed files with 50 additions and 13 deletions

View File

@@ -78,7 +78,13 @@ export function AddToCartButton({ item }: { item: Product }) {
}
};
const handleMinusClick = () => {
const handleMinusClick = (e: React.MouseEvent<HTMLButtonElement>) => {
e.stopPropagation();
e.preventDefault();
if (restaurant && !restaurant.isOpened) {
message.warning(t("menu.restaurantIsClosed"));
return;
}
if (restaurant && !restaurant.isOpened) {
message.warning(t("menu.restaurantIsClosed"));
return;