if the user role is admin dont show the booking section
All checks were successful
Build frontend / build (push) Successful in 50s
All checks were successful
Build frontend / build (push) Successful in 50s
This commit is contained in:
@ -1289,7 +1289,7 @@ export default function PropertyDetailsPage() {
|
|||||||
{/* Sidebar */}
|
{/* Sidebar */}
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{/* Booking Card */}
|
{/* Booking Card */}
|
||||||
{property.isRent && (
|
{property.isRent && !AuthService.isAdmin() && (
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, x: 20 }}
|
initial={{ opacity: 0, x: 20 }}
|
||||||
animate={{ opacity: 1, x: 0 }}
|
animate={{ opacity: 1, x: 0 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user