feat/booking-panel #52

Merged
Hammond merged 2 commits from feat/booking-panel into master 2025-12-04 18:27:57 +00:00
2 changed files with 6 additions and 23 deletions

View File

@ -465,26 +465,6 @@ export default function UserAppointmentDetailPage() {
</h2> </h2>
</div> </div>
<div className="p-6 space-y-4"> <div className="p-6 space-y-4">
{appointment.jitsi_room_id && (
<div>
<p className={`text-xs font-medium mb-2 uppercase tracking-wider ${isDark ? "text-gray-400" : "text-gray-500"}`}>
Meeting Room ID
</p>
<div className="flex items-center gap-2">
<p className={`text-sm font-mono px-3 py-2 rounded-lg ${isDark ? "bg-gray-800 text-gray-200" : "bg-white text-gray-900 border border-gray-200"}`}>
{appointment.jitsi_room_id}
</p>
<button
onClick={() => appointment.can_join_as_participant && copyToClipboard(appointment.jitsi_room_id!, "Room ID")}
disabled={!appointment.can_join_as_participant}
className={`p-2 rounded-lg transition-colors ${appointment.can_join_as_participant ? (isDark ? "hover:bg-gray-700" : "hover:bg-gray-100") : (isDark ? "opacity-50 cursor-not-allowed" : "opacity-50 cursor-not-allowed")}`}
title={appointment.can_join_as_participant ? "Copy room ID" : "Meeting not available"}
>
<Copy className={`w-4 h-4 ${isDark ? "text-gray-400" : "text-gray-500"}`} />
</button>
</div>
</div>
)}
<div> <div>
<p className={`text-xs font-medium mb-2 uppercase tracking-wider ${isDark ? "text-gray-400" : "text-gray-500"}`}> <p className={`text-xs font-medium mb-2 uppercase tracking-wider ${isDark ? "text-gray-400" : "text-gray-500"}`}>
Meeting Link Meeting Link

View File

@ -80,7 +80,10 @@ export function Navbar() {
whileHover={{ scale: 1.05 }} whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }} whileTap={{ scale: 0.95 }}
> >
<Link href="/" className="flex items-center gap-1.5 sm:gap-2"> <Link
href={isAuthenticated && !isAdmin ? "/user/dashboard" : "/"}
className="flex items-center gap-1.5 sm:gap-2"
>
<div className="bg-gradient-to-r from-rose-500 to-pink-600 p-1.5 sm:p-2 rounded-lg sm:rounded-xl"> <div className="bg-gradient-to-r from-rose-500 to-pink-600 p-1.5 sm:p-2 rounded-lg sm:rounded-xl">
<Heart className="h-4 w-4 sm:h-5 sm:w-5 text-white fill-white" /> <Heart className="h-4 w-4 sm:h-5 sm:w-5 text-white fill-white" />
</div> </div>
@ -127,7 +130,7 @@ export function Navbar() {
</Button> </Button>
)} )}
<ThemeToggle /> <ThemeToggle />
{!isUserDashboard && ( {!isAdmin && (
<Link <Link
href="/book-now" href="/book-now"
className={`text-sm font-medium transition-colors cursor-pointer px-3 py-2 rounded-lg hover:opacity-90 ${isDark ? 'text-gray-300 hover:text-white' : 'text-gray-700 hover:text-rose-600'}`} className={`text-sm font-medium transition-colors cursor-pointer px-3 py-2 rounded-lg hover:opacity-90 ${isDark ? 'text-gray-300 hover:text-white' : 'text-gray-700 hover:text-rose-600'}`}
@ -231,7 +234,7 @@ export function Navbar() {
Sign In Sign In
</Button> </Button>
)} )}
{!isUserDashboard && ( {!isAdmin && (
<Link <Link
href="/book-now" href="/book-now"
onClick={() => setMobileMenuOpen(false)} onClick={() => setMobileMenuOpen(false)}