add rate feature to orders page & enhance menu page
This commit is contained in:
@@ -39,10 +39,9 @@ export default function RestaurantPage() {
|
||||
const dispatch = useAppDispatch();
|
||||
const { t } = useTranslation();
|
||||
const param = useParams();
|
||||
const { isMobile } = useBreakPoint();
|
||||
const [searchParams] = useSearchParams();
|
||||
const { pathname } = useLocation();
|
||||
const { orderType, items: cartItems } = useAppSelector(
|
||||
const { orderType } = useAppSelector(
|
||||
(state) => state.order,
|
||||
);
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
@@ -54,10 +53,10 @@ export default function RestaurantPage() {
|
||||
);
|
||||
const [isOrderDetailsOpen, setIsOrderDetailsOpen] = useState(false);
|
||||
|
||||
const { containerRef, handleTouchEnd, handleTouchStart } = useSwipeUp({
|
||||
swipeAction: () => setIsOrderDetailsOpen(true),
|
||||
isEnabled: isMobile && cartItems.length > 0,
|
||||
});
|
||||
// const { containerRef, handleTouchEnd, handleTouchStart } = useSwipeUp({
|
||||
// swipeAction: () => setIsOrderDetailsOpen(true),
|
||||
// isEnabled: isMobile && cartItems.length > 0,
|
||||
// });
|
||||
|
||||
// Automatically load restaurant taxes when restaurant data is available
|
||||
useRestaurant(restaurant);
|
||||
@@ -107,7 +106,7 @@ export default function RestaurantPage() {
|
||||
</div>
|
||||
|
||||
<RestaurantServices />
|
||||
<div
|
||||
{/* <div
|
||||
ref={containerRef}
|
||||
onTouchStart={handleTouchStart}
|
||||
onTouchEnd={handleTouchEnd}
|
||||
@@ -115,7 +114,7 @@ export default function RestaurantPage() {
|
||||
<div className={styles.promotionContainer}>
|
||||
<Ads1 />
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className={styles.socialIconsContainer}>
|
||||
<Link to={`https://www.instagram.com/${restaurant?.instagram}`}>
|
||||
<InstagramIcon className={styles.socialIcon} />
|
||||
|
||||
Reference in New Issue
Block a user